Friday, February 1, 2013

Re: how to make a file relative to $VIM

Hi Jeri!

On Fr, 01 Feb 2013, Jeri Raye wrote:

> Hi,
>
> I can make a directory relative to $VIM with this command
> set bdir=$VIM/vimfiles/backup
>
> I can make a file location with an absolute path available bij saying:
> let MRU_File = 'C:\vim\_vim_mru_files'
>
> How can I make a file location relative to $VIM?
> let MRU_File = "$VIM/_vim_mru_files"'doesn't seem to work

You need to expand the environment variables using expand()

regards,
Christian
--
Ich will nichts mit den Nieren wagen
solang' daran die Viren nagen.

--
--
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@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment