sponsor Vim development Vim logo Vim Book Ad

StateExp : Ease writing code by expanding statements.

 script karma  Rating 32/11, Downloaded by 1234  Comments, bugs, improvements  Vim wiki

created by
Christian Habermann
script type
The main point this script targets to is to ease writing code. Just type sw<ctrl-s> and you get a complete switch(){case;break;}  statement.
But it can also be used to add a header to a letter, etc. What to expand and how to expand can easily be configured.          
To invoke the statement expansion, type a short form of a statement and press <ctrl-s> in insert mode.                        
  Memory aid: s (s)tatement expansion                              
The statement will be expanded. By default the most important C statements are defined.
Press <leader>sh to get a list of defined statements.              
  Memory aid: sh (s)tatement expansion (h)elp                      
install details
Just copy this script into Vim's plugin directory, for details see Vim help ':help plugin'.

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
StateExp.vim 1.01.00 2007-01-28 7.0 Christian Habermann - better alignment of help page if statements are not all of the same length
- new statement: 'else { }'
stateexp.vim 1.00.00 2006-10-26 7.0 Christian Habermann Initial upload
ip used for rating:

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.