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

Re: how to make a file relative to $VIM

Expand Messages
  • Christian Brabandt
    ... Oh, I learnt something new today. I didn t know, you can use environment variables like normal variables. regards, Christian -- -- You received this
    Message 1 of 8 , Feb 1, 2013
    • 0 Attachment
      On Fri, February 1, 2013 10:59, Jürgen Krämer wrote:
      > Christian Brabandt wrote:
      >> :let expects and an expression and so you need to quote strings and
      >> append them:
      >> :let MRU_File = expand($VIM). "/_vim_mru_files"
      >
      > you don't need expand() here. It's onyl necessary if you want to expand
      > environment variables inside a string, like in the second example. Thus,
      >
      > :let MRU_File = $VIM . "/_vim_mru_files"
      >
      > is sufficient.

      Oh, I learnt something new today. I didn't know, you can use environment
      variables like normal variables.

      regards,
      Christian

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