Andy Wokula wrote:
> Minor issue, but somehow confusing:
> 
> Unix (and DOS (Win)) users know that Vim converts some 
> characters when reading and writing a file:
> 
> File <-> Memory <-> Display
> NL       (NUL)      (line break)
> NUL      NL         NUL (^@)
> 
> With ff=mac, Vim does another conversion, to keep NUL->NL:
> CR       (NUL)      (line break)
> NUL      NL         NUL (^@)
> NL       CR         NL (^J)

I've noticed some related confusion.

The command :dig has output including:
  NU  ^@  10
  LF  ^@  10  

However, if you actually use Ctrl-K N U in insert mode, then save the file, you 
will
get a zero byte (NUL). Same for Ctrl-K L F.

Of course ^@ is zero, so that's correct, and the 10 is how it's represented in
memory, so that's correct too. I guess it's unavoidable confusion.

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui