Am 17.02.2010 16:21, schrieb eran:
Hi,
I want to be able to do a search and replace where (in one command) I
can replace e.g.

windows ->  linux
Windows ->  Linux
WINDOWS ->  LINUX

Since the words might have different character counts we can't do a
1-1 mapping for the letter cases, but if we can at least identify and
deal with the three situations above (all lower, first letter upper,
and all upper), I'd be happy.  Does anyone know of any existing
scripts to do this?

Yes, (one of the first scripts ever):

keepcase.vim : Functions for doing case-persistant substitutions
http://vim.sf.net/scripts/script.php?script_id=6

--
Andy

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to