failure of replacing newline character in vim

  • Follow


After replacing " \n" with "\n", although the white space is removed, all 
the lines with "\n" becomes ^@

I wonder whether this is due to the file originally in Excel (export to 
text). But dos2unix does not solve... 


0
Reply Ela 5/15/2008 2:29:51 PM

Ela wrote:
> After replacing " \n" with "\n", although the white space is removed, all 
> the lines with "\n" becomes ^@
> 
> I wonder whether this is due to the file originally in Excel (export to 
> text). But dos2unix does not solve... 
> 
> 

You could use od or favorite hex/octal viewing program to see
what characters are actually there in the original.

What command did you use to make the replace?
0
Reply Chris 5/15/2008 8:23:32 PM


1 Replies
426 Views

(page loaded in 0.565 seconds)

Similiar Articles:













7/24/2012 8:52:13 PM


Reply: