On Tue, Sep 13, 2011 at 2:06 PM, Benjamin R. Haskell <[email protected]> wrote: > > ^M == \r CR carriage return > ^J == \n LF line feed > > So, I think it's what's described at: > > :help CR-used-for-NL > or > :help sub-replace-special > > Maybe not the right explanation(s)... but I think it's the same reason: > > \n sometimes means <NUL>, sometimes <NL> > \r sometimes means <NL>, sometimes <CR> >
Possibly. But these help sections seem to apply to search/replace, not register manipulation. This should work, in my opinion: :let @a='<C-R><C-R>a' It doesn't. First of all, theres the ^J->^M conversion. Then, it adds an additional ^J character at the end to make the register linewise, even though it is already linewise. I think something is wrong here. I also kind of expected searching for the yanked text to work, but that makes...slightly more sense. I found that searching with ^J characters doesn't work either, you need to use \n (entered with <C-V><C-J> and displayed as ^@). -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
