Skip to content

Instantly share code, notes, and snippets.

@syusui-s
Last active August 29, 2015 13:56
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 syusui-s/8798280 to your computer and use it in GitHub Desktop.
Save syusui-s/8798280 to your computer and use it in GitHub Desktop.
show invisible letters
" 括弧補完
inoremap { {}<LEFT>
inoremap [ []<LEFT>
inoremap ( ()<LEFT>
inoremap " ""<LEFT>
inoremap ' ''<LEFT>
vnoremap { "zdi^V{<C-R>z}<ESC>
vnoremap [ "zdi^V[<C-R>z]<ESC>
vnoremap ( "zdi^V(<C-R>z)<ESC>
vnoremap " "zdi^V"<C-R>z^V"<ESC>
vnoremap ' "zdi'<C-R>z'<ESC>
"" show invisible letters
set list
set listchars=tab:»-,trail:○,eol:↲,extends:»,precedes:«,nbsp:%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment