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

Re: Basic variable use question.

Expand Messages
  • Hari Krishna Dara
    On Tue, 2 Apr 2002 at 3:06pm, Deragon, Hans wrote:Greetings. I am trying the following: --- if has( win32 ) let PRCURS= _ endif
    Message 1 of 3 , Apr 2, 2002
    • 0 Attachment
      On Tue, 2 Apr 2002 at 3:06pm, Deragon, Hans wrote:

      > Greetings.
      >
      >
      > I am trying the following:
      >
      > --->
      > if has("win32")
      > let PRCURS="_"
      > endif
      >
      > source ${HOME}/PRCURSvimrc.work
      > <---
      >
      > Obviously, this failes since PRCURS is not substituded by the variable's
      > content, i.e. "_". How do I specify vim that PRCURS is a variable in the
      > source command?
      >

      One way would be to use the exec command:

      exec "source " . $HOME . "/" . PRCURS . "vimrc.word"

      Not sure if there is a better way of doing this.

      Hari


      _________________________________________________________
      Do You Yahoo!?
      Get your free @... address at http://mail.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.