vimのテンプレート管理ぷらぎん達
ここでは, neosnippet, snipMate.vim等, 超短いコード断片向けな物は除いて扱う.
更新が盛んな物もあったり, 新規に作る人も多そうなので, 情報が古い可能性や, 漏れている可能性が多分にある.
そのうちレビューしてみたい.
これら以外に知っている物があったり, これはこういう所がいいとかあれば, コメントして頂けると嬉しいです.
2013/02/09 追記: Unite neobundle/search で template とかすると(死)
autocmd
pluginなんて使わず, vimrcで適当に設定する方法も.
autocmd BufNewFile でググろう.
unite.vim
俺は全て unite.vim で済ませるんだ! 派とか.
nnoremap <silent> [unite]l :<C-u>execute \ "Unite file:~/.vim/template/" . expand("%:e"). \ " -default-action=insert_file"<CR> let insert_file = { \ 'is_selectable' : 1, \ } function! insert_file.func(candidates) for l:candidate in a:candidates silent exe "r " . l:candidate.action__path endfor endfunction call unite#custom_action('file', 'insert_file', insert_file) unlet insert_file