In vimrc, I want to set the path from an environment variable, eg.:
set path = '.,' . $SOMEVAR . '/**'
So if $SOMEVAR was /foo/bar, I want vim's path to be '.,/foo/bar/**'.
I've tried expand("$SOMEVAR"), tried 'let'ing the path instead of 'set'ing it, but I'm just missing the exact syntax for doing this.
This wikia page almost has the answer, but doesn't cover set:
http://vim.wikia.com/wiki/Environment_variables
--
.
--
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
Wednesday, May 9, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment