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

RE: Using variables within command line commands

Expand Messages
  • John Beckett
    ... You ve had the solution, but the reason for the behaviour is because Vim script consists of commands you can type within Vim. There s not one set of rules
    Message 1 of 4 , Sep 6, 2008
    • 0 Attachment
      snoweye wrote:
      > :let MyVar = "MyFile.txt"
      > :tabedit MyVar
      >
      > :tabedit opens a new tab editing the file 'MyVar' and not
      > 'MyFile.txt'.

      You've had the solution, but the reason for the behaviour is because Vim script
      consists of commands you can type within Vim. There's not one set of rules for Vim
      and another for script.

      If you are in Vim (editing a file), and you type ':tabedit MyVar' you would want to
      edit a file called 'MyVar'.

      John


      --~--~---------~--~----~------------~-------~--~----~
      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.