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

Re: Set env

Expand Messages
  • Antoine J. Mechelynck
    ... The above will work inside Vim. To have it work also in child processes (external programs called from Vim) the path separator for Windows should be a
    Message 1 of 3 , Nov 19, 2004
      On 19/11/2004 11:18, Fabien Meghazi wrote:
      >>In the case you mention, Method 1 has the advantage of being able to
      >>access the correct vimfiles directory from any command shell; but if you
      >>don't need that functionality, you can add the following (or something
      >>similar) to your vimrc:
      >>
      >> if has("unix")
      >> let $VIMFILES = $HOME . "/.vim"
      >> else
      >> let $VIMFILES = $HOME . "/vimfiles"
      >> endif
      >
      >
      > Thanks !
      >
      >
      >>HTH,
      >>Tony.

      The above will work inside Vim. To have it work also in child processes
      (external programs called from Vim) the path separator for Windows
      should be a backslash, so replace the last line but one in the above
      code with

      let $VIMFILES = $HOME . '\vimfiles'

      (using single quotes to avoid the need to backslash-escape the
      backslash), and check that your HOME environment variable is defined
      with backslashes (":echo $HOME", no quotes, in Vim).

      Best regards,
      Tony.
    Your message has been successfully submitted and would be delivered to recipients shortly.