Sunday, March 6, 2011

How to access to the string inside a string variable in a :e command

Hello,
A beginner's question.
I create the string variable foobar using
let foobar = "test2.f"

Using
echo foobar
results in test2.f (OK)
Now I want to open test2.f
:e foobar
opens a file foobar
:e 'foobar'
opens the file 'foobar'
What is the syntax to open test2.f using the foobar variable.

Best regards

Jean Johner

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

No comments:

Post a Comment