Tuesday, December 13, 2011

set (option)=script-variable-value

I am trying to set my "tags" option based on an analysis and
decomposition/reconstruction of my opened edit-file path. I managed
to get the desired 'tags' path constructed into a scripting variable
string, but am not able to assign this string value to the VIM "tags"
option. As a simple example:

let myvar="abc"
set tags=myvar

I want the output of "set tags" to give:
abc

Instead it gives:
myvar

Does anybody know how to take the variable-value and set it to a vim-
option?
Thanks!
---Dave.

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