Linux

Sunday, May 10, 2009

Gvim tip #1

To delete a line containing a pattern
:g/profile/d

To see the lines that this command will delete

:g/profile
Reference:
[1] http://vim.wikia.com/wiki/Delete_all_lines_containing_a_pattern

Labels: