Mercurial > vim
view src/testdir/test_smartindent.vim @ 10464:ce8ef728a12e v8.0.0125
commit https://github.com/vim/vim/commit/eaaa9bbda6ec0a8589a9b23720f95bffe01dc267
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 9 18:42:20 2016 +0100
patch 8.0.0125
Problem: Not enough testing for entering Ex commands.
Solution: Add test for CTRL-\ e {expr}. (Dominique Pelle)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 09 Dec 2016 18:45:04 +0100 |
parents | eb9a7296ae9f |
children | 268b1036cd17 |
line wrap: on
line source
" Tests for not doing smart indenting when it isn't set. function! Test_nosmartindent() new call append(0, [" some test text", \ " test text", \ "test text", \ " test text"]) set nocindent nosmartindent autoindent exe "normal! gg/some\<CR>" exe "normal! 2cc#test\<Esc>" call assert_equal(" #test", getline(1)) enew! | close endfunction