Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Vi Question

  1. #1
    Regular Coder
    Join Date
    Jun 2004
    Posts
    112
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Vi Question

    I suppose this is off topic, but I wasn't sure of the best forum.

    Does anyone know how to replace the Windows generated ^Ms in vi?

    I thought it was `:%s/<control+v><shift+m>$//

    After the <control+v> (^), the M goes ontop of it...

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    http://opendeveloper.org/book/print/2

    Also many Unix/Linux systems have the dos2unix and unix2dos utilities that will do this for you. Type in:

    man unix2dos
    man dos2unix

    to see if you have them available
    Last edited by Spookster; 07-27-2004 at 05:09 PM.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Regular Coder
    Join Date
    Jun 2004
    Posts
    112
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ahh thanks, I was pushing shift+m not control.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •