Mercurial > vim
comparison src/testdir/test_smartindent.vim @ 10145:eb9a7296ae9f v7.4.2343
commit https://github.com/vim/vim/commit/53f1673cd909eb1c809c6a9086e3d104a0df9bed
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 7 20:46:39 2016 +0200
patch 7.4.2343
Problem: Too many old file tests.
Solution: Turn several into new style tests. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 07 Sep 2016 21:00:08 +0200 |
parents | |
children | 268b1036cd17 |
comparison
equal
deleted
inserted
replaced
10144:edc80d8a7d2f | 10145:eb9a7296ae9f |
---|---|
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 |