2010年1月24日 星期日

Vim - Making your script auto-installable

Once you write a plugin , you will need it to be auto-installable. Vimana is a script manager , which parses script files, and looks for a "script type:" tag to install the script.

For example , if you have script , which is a ftplugin , then you should write:


in your script file. cases is ignored.

then the plugin could be installed via Vimana script manager.


Or if you have multiple file to install , you can put your script files in this kind of directory structure:

plugin/script.vim
ftplugin/script.vim
doc/script.txt

then tar it and upload to vim.org site , the plugin could be installed via Vimana too.