Search This Blog

Monday, March 26, 2007

search for one word and exclude another word in vim

In vim, to find all the lines containing the word 'condition' (without the quotes) and to exclude those lines containing 'condition number', install the LogiPat plugin available at

The sample command looks like

:LP "condition" & !"condition_number"

Related links
  • Download and installation instructions
  • LogiPat on Author's homepage
  • Discussion on vim mailing list

No comments:

Blog Archive