Skip to content

Instantly share code, notes, and snippets.

@mattn
Created August 8, 2014 06:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/19a6e4235c6603f39724 to your computer and use it in GitHub Desktop.
Save mattn/19a6e4235c6603f39724 to your computer and use it in GitHub Desktop.
Tests for visual block and insert/append letter in horizontal vim: set ft=vim :
STARTTEST
:so small.vim
:new
:call setline(1, ["aaa", "あああ", "bbb"])
:exe ":norm! gg0l\<C-V>jjIx\<Esc>"
:let r = getline(1, '$')
:
:bwipeout!
:$put=r
:call garbagecollect(1)
:/^start:/,$wq! test.out
ENDTEST
start:
start:
axaa
xあああ
bxbb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment