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

Re: Possible to "paste" variables to the document via macros? [sj]

Expand Messages
  • smu johnson
    Thank you very much Tim, as well as fritzophrenic ! 2008/10/28 Tim Chase ... -- smu johnson
    Message 1 of 4 , Oct 29, 2008
    • 0 Attachment
      Thank you very much Tim, as well as fritzophrenic !

      2008/10/28 Tim Chase <vim@...>

      > Let's say, for example, that I wanted to macro to paste
      > "loaded_vimballPlugin" in the :let variable screen.  How would I do it?
      >
      > :map \Z i{echo loaded_vimballPlugin} is the value!<Esc>

      Looks like you might be interested in the expression-evaluation
      register:

        :nnoremap \Z i<c-r>=loaded_vimballPlugin<cr> is the value!<esc>

      You can read about it at

        :help i_CTRL-R
        :help @=

      Hope this helps,

      -tim







      --
      smu johnson <smujohnson@...>


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---

    Your message has been successfully submitted and would be delivered to recipients shortly.