I did the following and got it to work. Thanks for your help
map ,y :redir! > ~/a.txt <BAR> silent echo @0 <BAR> redir END <CR>
map ,p :read ~/a.txt <CR>
Cheers,
Moses
On Thu, Sep 9, 2010 at 12:32 PM, 曹锡韬 <xitao.cao@gmail.com> wrote:
在 2010-09-09四的 11:18 +0530,Moses N写道:
> Hi Dave,want this ?
> Thanks for that tip. Is is possible to the get just the code
> snippet that will help me copy the register contents to a file?
:enew
:"xp (x is your register)
:w file
--
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
--
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
No comments:
Post a Comment