sponsor Vim development Vim logo Vim Book Ad

EnumToCase : Convert enumerated lists to case statements

 script karma  Rating 6/3, Downloaded by 1959  Comments, bugs, improvements  Vim wiki

created by
Al Budden
 
script type
utility
 
description
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:

:'<,'>EnumToCase

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: 3.89.200.155

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