Bram Moolenaar | 53f1673 | 2016-09-07 20:46:39 +0200 | [diff] [blame] | 1 | |
2 | " Tests for not doing smart indenting when it isn't set. | ||||
3 | function! 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 | ||||
14 | endfunction |