Saturday, November 19, 2011

Re: autocommand to replace special characters into a file.

On 19.11.11 11:11, Eddine wrote:
> Now the question is :
> 1 - how to I type ^A special ? I know how to type ^M with <CTRL-V>
> but not ^A

The same way as ^M.

> 2 - in case there's no ^M or ^A to be replaced in my *.log file, how to
> make it silent ?

:h :silent # Leads me to try:

:silent! %s/^M\|^A/

and that suppresses the error message, just as the manual describes.

Erik

--
Universities are places of knowledge. The freshmen each bring a little
in with them, and the seniors take none away, so knowledge accumulates.
- Harvard President A. L. Lowell

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: