blob: d00eac97981f22940a501cc670882d815f7dcfee [file] [log] [blame]
Bram Moolenaar53f16732016-09-07 20:46:39 +02001
2" Tests for not doing smart indenting when it isn't set.
3function! Test_nosmartindent()
4 new
5 call append(0, [" some test text",
6 \ " test text",
7 \ "test text",
8 \ " test text"])
9 set nocindent nosmartindent autoindent
10 exe "normal! gg/some\<CR>"
11 exe "normal! 2cc#test\<Esc>"
12 call assert_equal(" #test", getline(1))
13 enew! | close
14endfunction