I've just discovered that the digraph for linefeed is always ^@, which is the same as the null digraph. This is confusing. Why not use ^J for linefeed, which would be more logical?
Secondly, I've also discovered that the digraph for carriage-return is ^M when the fileformat is either dos or unix, but it changes to ^J when the fileformat is mac. Why is it like this? Thirdly, I can't seem to get a linefeed displayed as a digraph character in vim at all. I've tried writing out a file in the unix fileformat, so that all newlines are LFs and there are no CRs, then I set the fileformat to mac (so that LFs should not be displayed as line breaks), I set fileformats to nothing, and I edit the file. I expect the LFs to be displayed as ^@ (meaning LFs), and I expect the :ascii command to return LF, but instead the LFs are displayed as ^J and :ascii returns CRs. Did vim convert the LFs to CRs when I edited the file? --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
