[TriLUG] Stupid VI question

William Sutton william at trilug.org
Wed Feb 8 10:40:06 EST 2006


AFAIK, CTRL+V, CTRL+M is the only way to do this...if another solution 
presents itself, I want to know :)

on another note, if you ever have to substitute out funny control 
characters, you can use CTRL+V, CTRL+(character) for the control character

-- 
William Sutton

On Wed, 8 Feb 2006, Alan Porter wrote:

> 
> >:%s/,/*nl*/g
> >  
> >
> 
> 
> I just tried (in vim)   :%s/,/<CTRL-V><CTRL-M>/g
> 
> The ctrl-V says that the next character is literal, and
> should not be interpreted.  When you press ctrl-M, you'll
> see a blue colored "^M".
> 
> That is, 10 keystrokes: : % s / , / ctrl-v ctrl-m / g
> 
> I'm sure there's a dozen other ways to do it.
> 
> Alan
> 
> 
> 
> 
> .
> 
> 



More information about the TriLUG mailing list