sponsor Vim development Vim logo Vim Book Ad

vim.vim : indentation for vim script with support for embedded scripting language

 script karma  Rating 5/2, Downloaded by 1169    Comments, bugs, improvements  Vim wiki

created by
Benoit Cerrina
script type
This script is for those of us who uses embedded scripting language in the here document form.
see :help perl, :help ruby, :help python, :help tcl
if you embed a script in vim using the
#some perl code
or equivalent for other script languages, the scripts won't be correctly indented.
Worse, if you write some python this way and reindent your file the whole script is trashed since
the indentation was meaningfull and it is lost.

This scripts add support for indenting the embedded script.
Please mail me any problems you encounter with this script
install details
just put this script in an indent subdirectory somewhere in the runtimepath (:help runtimepath).
The runtime directory where you put it must be BEFORE the standard vim runtime directory, this
allows this script to use the regular indent/vim.vim script for the non embedded part.
default runtimepath on unix:
the script must be copied in $HOME/.vim/indent
or in $VIM/vimfiles

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
vim.vim 0.1 2001-10-12 6.0 Benoit Cerrina 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