(Created page with "Some instructions for this script state: "Place in ~/.vim/indent/ and let 'er rip!" This may be cryptic to some users. To elaborate a bit... The script specifically redefines ...") |
No edit summary |
||
Line 6: | Line 6: | ||
After the script is in that directory, when you are running vim you can ":source ~/.vim/indent/sh.vim" to cause the redefinition. Thereafter, any time you use indentexpr, you will be using the new function. |
After the script is in that directory, when you are running vim you can ":source ~/.vim/indent/sh.vim" to cause the redefinition. Thereafter, any time you use indentexpr, you will be using the new function. |
||
+ | |||
+ | To learn about indentexpr, run vim and execute ":help indentexpr". |
Revision as of 18:38, 6 January 2012
Some instructions for this script state: "Place in ~/.vim/indent/ and let 'er rip!"
This may be cryptic to some users. To elaborate a bit...
The script specifically redefines "indentexpr" to be a new function "SuperShIndent()".
After the script is in that directory, when you are running vim you can ":source ~/.vim/indent/sh.vim" to cause the redefinition. Thereafter, any time you use indentexpr, you will be using the new function.
To learn about indentexpr, run vim and execute ":help indentexpr".