Dave's Brain

Browse - Computer Tips - How can I change the case of the current letter in vi/vim?

Date: 2013aug9
Product: vim. vi

Q.  How can I change the case of the current letter in vi/vim?

A.  Press the tilde (~) key.  This is such a useful thing;
I'd like to shake the hand of the person that invented it!

I wish it could do more - it could
turn a _ into -
turn < into >
turn { into }
turn ( into )
turn . into ,
etc

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.