sponsor Vim development Vim logo Vim Book Ad

template-init.vim : provide more flexiable template

 script karma  Rating 0/0, Downloaded by 503    Comments, bugs, improvements  Vim wiki

created by
Yo-An Lin
script type
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

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
template-init.tar.gz 1.1 2009-09-13 7.0 Yo-An Lin new version vim plugin
template-init.tar.gz 0.1 2009-09-12 7.0 Yo-An Lin Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo