Advertisement
Guest User

snips

a guest
Dec 7th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.25 KB | None | 0 0
  1. " edit/create
  2. command! -nargs=1 Snip split $HOME/.vim/snips/<args>
  3.  
  4. " insert
  5. inoremap \<tab> <esc>"ydiw:r ~/.vim/snips/<c-r>y<CR>=']k$J/___<cr>"ycw
  6.  
  7. " move between placeholders
  8. inoremap <c-l> <esc>/___<cr>"ycw
  9. inoremap <c-u> <esc>?___<cr>"ycw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement