view src/testdir/test_blockedit.vim @ 13752:8a3e9d1e8cf9 v8.0.1748

patch 8.0.1748: CmdlineEnter command uses backslash instead of slash commit https://github.com/vim/vim/commit/a4baf5b32519855bb176a7aa0e9397c137ca890a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 22 13:27:44 2018 +0200 patch 8.0.1748: CmdlineEnter command uses backslash instead of slash Problem: CmdlineEnter command uses backslash instead of slash. Solution: Don't treat the character as a file name. (closes https://github.com/vim/vim/issues/2837)
author Christian Brabandt <cb@256bit.org>
date Sun, 22 Apr 2018 13:30: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