Friday, February 1, 2013

Re: how to make a file relative to $VIM

On Fri, Feb 1, 2013 at 9:59 AM, Christian Brabandt <cblists@256bit.org> wrote:
> Hi Jeri!
>
[...]
> You need to expand the environment variables using expand()
[...]

When I type :

let MRU_File = expand($VIM)/_vim_mru_files

a) it creates errors
E121: Undefined variable: _vim_mru_files
E15: Invalid expression: expand($VIM)/_vim_mru_files

b) However it does seems to work.

What is wrong?


When I added two qoutes characters (') before and behind the line:
let MRU_File = 'expand($VIM)/_vim_mru_files'
I don't get the error, but it also doesn't work.

Rgds,
Jeri

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