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
--
Der Mensch ist das einzige Lebewesen, das von sich eine schlechte
Meinung hat.
-- George Bernard Shaw
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php