template-init.vim : provide more flexiable template
script karma |
Rating 0/0,
Downloaded by 1191 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Yo-An Lin |
|
script type |
utility |
|
description |
template-init.vim let you to leave place holders in your template , then you can press <tab> key to jump to next placeholder (in insert mode)
the placeholder could be in vimscript , so that you can generate content by vim function or vim command , even in perl or ruby.
let g:skeleton_path = expand('~/.vim/skeleton')
let g:skeleton_placeholder_key = '<Tab>'
to setup template:
au BufNewFile *.t :call InitTemplate('template.t')
au BufNewFile *.pl :call InitTemplate('')
to setup placeholder:
{{!perl: print q|test|}}
{{!vim: expand('%')}}
{{:normal ggyp}}
{{place holder}}
github: http://github.com/c9s/template-init.vim
|
|
install details |
$ make install |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.149.235.7
|