view src/testdir/test_blockedit.vim @ 13629:21036fdd939d

Added tag v8.0.1686 for changeset b59806681b98b4eb9b5de07032c0d7bc9309efc7
author Christian Brabandt <cb@256bit.org>
date Tue, 10 Apr 2018 18:15:08 +0200
parents 4faf77b96432
children 7ed76dcf0d94
line wrap: on
line source

" Test for block inserting
"
" TODO: rewrite test39.in into this new style test

func Test_blockinsert_indent()
  new
  filetype plugin indent on
  setlocal sw=2 et ft=vim
  call setline(1, ['let a=[', '  ''eins'',', '  ''zwei'',', '  ''drei'']'])
  call cursor(2, 3)
  exe "norm! \<c-v>2jI\\ \<esc>"
  call assert_equal(['let a=[', '      \ ''eins'',', '      \ ''zwei'',', '      \ ''drei'']'],
        \ getline(1,'$'))
  " reset to sane state
  filetype off
  bwipe!
endfunc


" vim: shiftwidth=2 sts=2 expandtab