Loading ...
Sorry, an error occurred while loading the content.
 

Re[2]: replacing something with \n

Expand Messages
  • Serguei V. Jidkov
    Hello Gary, ... GJ doesn t seem to work, but r does, oddly enough. This on a Unix GJ system with ff=unix. r breaks lines with ff=dos too. ...
    Message 1 of 4 , Dec 3, 2001
      Hello Gary,

      Monday, December 03, 2001, 10:27:03 AM, You wrote:

      >>
      >> Win2k - \r\n instead of \n for linebreaks.
      >>
      >> Try <CR> instead of \n.

      GJ> <CR> doesn't seem to work, but \r does, oddly enough. This on a Unix
      GJ> system with ff=unix.

      \r breaks lines with ff=dos too.

      :help sub-replace-special :

      <CR> split line in two at this point (Type the <CR> as CTRL-V
      <Enter>)
      \r idem
      \<CR> insert a carriage-return (CTRL-M) (Type the <CR> as CTRL-V
      <Enter>)
      \n insert a <NL> (<NUL> in the file) (does NOT break the line)

      --

      jsv mailto:jsv@...
    Your message has been successfully submitted and would be delivered to recipients shortly.