:%s/\[a-z]\+\//gI
another option is to include \C in the regular expression itself:
:%s/\C\[a-z]\+\//g
One should be careful about this, as the help states:
:help /\C
Note that 'ignorecase', \c and \C are not
used for the character classes.
And when you
Hi,
Tim Chase wrote:
:%s/\[a-z]\+\//gI
another option is to include \C in the regular expression itself:
:%s/\C\[a-z]\+\//g
One should be careful about this, as the help states:
:help /\C
Note that 'ignorecase', \c and \C are not
used for the character
Make sure 'ignorecase' is off:
:set noignorecase
:%s/\[a-z]\+\//g
Salman.
-Original Message-
From: William O'Higgins Witteman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 25, 2006 4:24 PM
To: vim
Subject: Matching non-capitalized words?
How would I match (and then delete)
Make sure 'ignorecase' is off:
:set noignorecase
:%s/\[a-z]\+\//g
If you don't want to bung with your vim-wide (or bufferwide)
settings, you can always just change your :s to include the I flag.
:%s/\[a-z]\+\//gI
Additionally, this will not find camel-case words, such as
Hi,
Tim Chase wrote:
Make sure 'ignorecase' is off:
:set noignorecase
:%s/\[a-z]\+\//g
If you don't want to bung with your vim-wide (or bufferwide)
settings, you can always just change your :s to include the I flag.
:%s/\[a-z]\+\//gI
another option is to include \C in