sponsor Vim development Vim logo Vim Book Ad

TabIndent : Overload the <Tab> key to either insert a tab, or indent the current line

 script karma  Rating 32/18, Downloaded by 1761  Comments, bugs, improvements  Vim wiki

created by
Andre Pang
 
script type
utility
 
description
The TabIndent plugin allows you use the <Tab> key in Insert mode to indent the current line, as well as retain its usual task of inserting a real <Tab> character.  TabIndent exhibits a bit of intelligence by making sure that the current line is only indented if you're editing source code, by checking the 'cindent' and 'indentexpr' options.  Editing text files will never cause the <Tab> key to perform indentation.

You can also change the behaviour of when indentation is performed; some people prefer <Tab> to always perform indentation, and others may want to indent only if the cursor is at the start of the line.  TabIndent is designed to make every user work the way they want to.
 
install details
Standard Vim plugin.  Unzip file, place tab-indent.vim file in your plugin directory, place tab-indent.txt file in your doc directory.  Have fun!
 

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
tabindent-1.0.zip 1.0 2002-05-18 6.0 Andre Pang Initial upload
ip used for rating: 35.170.54.171

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.
   
Vim at Github