sponsor Vim development Vim logo Vim Book Ad

tcl.vim : indentation file for tcl

 script karma  Rating 87/30, Downloaded by 3563  Comments, bugs, improvements  Vim wiki

created by
sm smithfield
 
script type
indent
 
description
This is a replacement for the tcl indent file that ships with vim.

Handles line continuations, nested braces and combination of the two. Skips over braces in comments. This should produce indented code that looks "as you'd expect".

If you have any suggestions or bugs, please send them along.

Requires vimscript #1603.
 
install details
place in ~/.vim/indent
 

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
tcl.vim 0.3.6 2007-02-13 6.0 sm smithfield Another tweek to the indent/comment interaction.
tcl.vim 0.3.5 2007-02-09 6.0 sm smithfield Change the way indentation interacts with comments and line-continues. Now it basically ignores comments when reformatting indentation.
tcl.vim 0.3.3 2007-02-02 6.0 sm smithfield Thanks to some feedback, found a bug w/rt the indentation of commented text.
tcl.vim 0.3.1 2007-02-01 6.0 sm smithfield fixed a bug for vim<7.0 that would cause a dead hang. This version is properly tested on vim 6.4.
tcl.vim 0.3 2007-02-01 6.0 sm smithfield This is a big improvement over the previous version. Too many things to list. Just try it.
tcl.vim 0.2 2007-01-25 6.0 sm smithfield Much improved. Handles hanging indents for things like data runs in [array set]. Handles escaped braces and other edge cases.
tcl.vim 0.1 2006-11-19 6.0 sm smithfield Initial upload
ip used for rating: 3.129.70.157

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