drlatex <n_dattani@hotmail.com> wrote:
> So my question is, why does vim not have the \n at the end after
> pressing %j! , while matlab and notepad seem to thing there IS a \n
> at the end ?? And is there a way to modify the files with vim so that
> matlab and notepad don't add this \n to the end ??
Hi,
what I can make from this (might be wrong):
vim automatically adds a newline at the end of any file. In Linux, de
end-of-line is '\n'. In Windows, it's '\r\n', and Notepad sees a
sole '\n' as junk.
You can either set Vim to Windows style EOLs, with :set ff=dos, or ask
vim not to append a newline to the final (and single, in your case)
line, with :set binary.
Hope this helps,
Vlad
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment