Tuesday, December 22, 2009

Re: Avoiding error message

epanda wrote:
>>> g/patt1/d
>>> g/patt2/d
>>> g/patt3/d
>>> An error message occurs when it cannot find te pattern 1 2 or 3.
>>> How can I proceed to avoid this error message out of using try catch
>>
>> :h :silent
>
> error appears even if I put silent

Where did you put it?

:sil g/non-existant/d

works for me.

-tim

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: