Jeff Roberts
RHCE #804006066322833
Vim-Fu is now iPhone and Android friendly

Check out the Vim-Fu Store!

Vim-Fu

case and searching

I often search for words only to find that my search was flawed because I didn’t know that one of the letters in the word was capitalized. Using two very cool settings in your .vimrc file in tandem, this problem can go away. Don’t you wish VIM could effect other things in life the same way?

:set ignorecase  or :set ic
:set smartcase

With these two options set, you can search I can search for word in:

word
Word
WOrD
WORD

and it will match all of the above, ie. it is not case sensative. BUT if I search for Word it will only match “Word”, ie case sensative. Neat Huh?

You can add :set incsearch ( set: is) which will do a “live” search, matching as you type.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>