On Sat 13-Jan-07 10:01am -0600, Anthony Campbell wrote:

> I've imported a lot of files from a DOS word processor. 
> These have lots of control sequences of the form M-J ) New 
> lines I think). I can search for the M, which is Return, 
> but I don't see any way to get the -J. Is it possible?

I have never seen Vim or Gvim show me a "M-J" for a control
character.  What are you seeing in Vim/Gvim and what is in
the file (in hex, for example) for those characters?

It is not likely a CR or LF.  I've created a small file with
the first line ending in CR, the second line ending in LF
and the last two lines ending in CR/LF.  The following is
what is shown inside Vim (identical to forcing UNIX):

    line 1^Mline 2
    line 3^M
    line 4^M

Forcing DOS with --cmd "set ffs=dos" gives:

    line 1^Mline 2
    line 3
    line 4

Forcing MAC with --cmd "set ffs=mac" gives:

    line 1
    line 2^Jline 3
    ^Jline 4
    ^J

Those ^M's and ^J's show up in blue in standard Gvim.

    gvim -u NONE -N
    
Typing :%!xxd shows:

0000000: 6c69 6e65 2031 0d6c 696e 6520 320a 6c69  line 1.line 2.li
0000010: 6e65 2033 0d0a 6c69 6e65 2034 0d0a       ne 3..line 4..

-- 
Best regards,
Bill

Reply via email to