Thread: Ctrl+V, Ctrl+M
View Single Post
  #1  
Old 01-24-2012, 01:48 PM
toloughlin's Avatar
toloughlin toloughlin is offline
Senior Member
 
Join Date: Feb 2004
Location: Nashua, NH
Posts: 378
Ctrl+V, Ctrl+M

I'm trying to get a button to put the following into VI, to remove the Windows Control Characters in a file (currently on SCRT 6.7.3 (x64))

Currently, I hit : to enter into the command portion within VI & then type:

%s/\(^M\)//

The ^M above is actually Ctrl+V Ctrl+M

Is there a way I can use a button on the button bar to put that in there?
I tried just doing a string with ^M ... but no luck.

Thanks!
__________________
----------------------------------------------
Tom O'Loughlin

Last edited by toloughlin; 01-24-2012 at 02:21 PM. Reason: clarification
Reply With Quote