sponsor Vim development Vim logo Vim Book Ad

To Upper case (case changer) : change the keywords to upper case.

 script karma  Rating -1/1, Downloaded by 877  Comments, bugs, improvements  Vim wiki

created by
JiuTian Zhang
 
script type
utility
 
description

User manual:
For use this script on VB.
First , add the following line to your vimrc:

let g:case_basic_source='IF;ELSE;THEN;DO;WHILE;FOR;CALL;'

Second , add the folloing line to your vimrc
We use .vb as the language extension name.

let g:case_changer_pat="*.vb"

Now , while your input if in your .vb file , I will change it to IF ...

Use this script for other language .
First , add source

" let g:case_{&ft}_source='WHILE;UNTIL;UNLESS...'

let g:case_ruby_source='WHILE;UNTIL;UNLESS...'
let g:case_sql_source='SELECT;INSERT;VALUES...'

Second , add file extension:

let g:case_changer_pat="*.vb;*.rb;*.py"
 
install details
put casechanger.vim to you $VIM/vimfiles/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
casechanger.vim 1.0 2011-03-15 7.0 JiuTian Zhang Initial upload
ip used for rating: 3.145.166.7

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