vim.vim : indentation for vim script with support for embedded scripting language
script karma |
Rating 5/2,
Downloaded by 1538 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Benoit Cerrina |
|
script type |
indent |
|
description |
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
perl<<EOF
#some perl code
EOF
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.
e.g:
default runtimepath on unix:
$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/.vim/after
the script must be copied in $HOME/.vim/indent
or in $VIM/vimfiles |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.189.184.99
|