I have already added a blog post with a tip for deleting all the matching lines for a matching patern. But this is some thing similar still it is easy after you seached for a text. ie., first search the pattern by "/" and the execute the command -
:g//d
This will delete all the lines with matching patterns. Tested in linux and also in windows.
I was in software industry since 2007. In this blog i am writing some tips i know from my personal experience for people who are in this software profession.
Sunday, October 17, 2010
Sunday, October 3, 2010
How to find number of matches in gvim
It is a easy tip to find the number of matching for the given pattern. Just search and replace it with any thing and see the success message given by vim. It will say "42 substitutions on 21 lines". And now undo changes. Thats it.
Subscribe to:
Posts (Atom)