Vim Tips Wiki
Register
Edit Page
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 4: Line 4:
 
Some instructions for this script state: "Place in ~/.vim/indent/ and let 'er rip!"
 
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:
+
This may be cryptic to some users. To elaborate a bit...
   
 
The script specifically redefines "indentexpr" to be a new function "SuperShIndent()".
 
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.
+
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". --January 6, 2012
 
To learn about indentexpr, run Vim and execute ":help indentexpr". --January 6, 2012
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)

Template used on this page: