Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " create/edit (use 3 or more underscores for a placeholder)
- command! -nargs=1 Snip split ~/.vim/snips/<args>
- " insert
- inoremap \<tab> <esc>"ydiw:r ~/.vim/snips/<c-r>y<cr>=']kJ/___<cr>"ycw
- " move between placeholders
- inoremap <c-l> <esc>/___<cr>"ycw
- inoremap <c-u> <esc>?___<cr>"ycw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement