Mercurial > vim
view src/testdir/test_virtualedit.vim @ 12167:917ae89c1f9d
Added tag v8.0.0963 for changeset f512c507b0617667f116cd8b3690acae75261023
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 19 Aug 2017 15:45:03 +0200 |
parents | 5d82470552ce |
children | 57e0b701611e |
line wrap: on
line source
" Tests for 'virtualedit'. func Test_yank_move_change() split call setline(1, [ \ "func foo() error {", \ "\tif n, err := bar();", \ "\terr != nil {", \ "\t\treturn err", \ "\t}", \ "\tn = n * n", \ ]) set virtualedit=all set ts=4 function! MoveSelectionDown(count) abort normal! m` silent! exe "'<,'>move'>+".a:count norm! `` endfunction xmap ]e :<C-U>call MoveSelectionDown(v:count1)<CR> 2 normal 2gg normal J normal jVj normal ]e normal ce bwipe! set virtualedit= set ts=8 endfunc