Loading ...
Sorry, an error occurred while loading the content.

Re: Preserving contents of a register in vimscript

Expand Messages
  • Paul Moore
    ... Thanks, I hadn t spotted those functions. Paul -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text
    Message 1 of 3 , Sep 12, 2013
    • 0 Attachment
      On Thursday, 12 September 2013 10:08:57 UTC+1, ZyX wrote:
      > // Use getreg()+getregtype() and setreg() with three arguments.
      >
      > What you are trying to achieve is not possible without pasting to some
      > temporary buffer and reading with getline() then (when restoring) pasting
      > again (with setline()) and using normal-mode y command. Just try to yank NUL
      > (obtained by e.g. :call setline('.', "a\nb")) and restore it.

      Thanks, I hadn't spotted those functions.
      Paul

      --
      --
      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 because you are subscribed to the Google Groups "vim_use" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    Your message has been successfully submitted and would be delivered to recipients shortly.