sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

EnumToCase : Convert enumerated lists to case statements

 script karma  Rating 5/2, Downloaded by 1228    Comments, bugs, improvements  Vim wiki

created by
Al Budden
script type
This is a very simple plugin that converts a list of enumerated names (copied and pasted directly from an enum block) into a set of correctly indented case statements.

The command should be called as:


More details are available at http://sites.google.com/site/abudden/contents/Vim-Scripts/enumtocase
install details
Copy to the plugin/ subdirectory in your .vim or vimfiles directory.

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
enumtocase.vim r282 2009-07-17 6.0 Al Budden Added optional support for maintaining end-of-line comments or anything.  More details on http://sites.google.com/site/abudden/contents/Vim-Scripts/enumtocase
enumtocase.vim r281 2009-07-17 6.0 Al Budden Added support for comments in enum declaration (end-of-line comment suggestion from Timo Teifel).
enumtocase.vim r272 2009-07-09 6.0 Al Budden Fixed bug in regular expression related to enumerations with a specified value.
enumtocase.vim r271 2009-07-08 7.0 Al Budden 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.
SourceForge.net Logo