Re: Matching non-capitalized words?

2006-07-26 Thread Tim Chase
:%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

Re: Matching non-capitalized words?

2006-07-26 Thread Jürgen Krämer
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

Matching non-capitalized words?

2006-07-25 Thread William O'Higgins Witteman
How would I match (and then delete) all of the words in a buffer that are not capitalized? Thanks. -- yours, William

RE: Matching non-capitalized words?

2006-07-25 Thread Halim, Salman
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

Re: Matching non-capitalized words?

2006-07-25 Thread Tim Chase
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

Re: Matching non-capitalized words?

2006-07-25 Thread Jürgen Krämer
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