I think UltiSnips can do what you want: https://github.com/sirver/UltiSnips .
There are similar alternative to it as well.

I recently abandoned snippet plugins for leader mappings and now wonder how I 
ever justified entire plugins in the first place.  In my case, 
after/ftplugin/c.vim, for example, has a total of eight mappings and two 
abbreviations.  I do not feel short-changed.

nnoremap <leader>s iswitch ()<CR>{<CR>case :<CR>break;<CR><BS>case :<CR>break;<CR><BS>case 
:<CR>break;<CR><BS><BS>}<ESC>8k/:<CR>02kf(a

How to Do 90% of What Plugins Do (With Just Vim)
https://www.youtube.com/watch?v=XA2WjJbmmoM&t=2300s

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to