On 2/4/10 2:28 PM, Christian Brabandt wrote:
Hi Robert!
On Do, 04 Feb 2010, Robert H wrote:
I want to delete every line that doesn't match the pattern:
:/\.$
I have a list of emails and some of them have a trailing period...I am
finding those lines and I would like to delete everything else but those
lines.
Use :v to delete all lines, that do not match the pattern \.$
:v/\.$/d
See :h :v
Mit freundlichen Grüßen
Christian
Thank you both. Helped a lot!
Robert
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php