[oclug]vim scripting
Bart Trojanowski
bart-oclug at jukie.net
Thu Nov 21 12:12:47 EST 2002
* Bart Trojanowski <bart-oclug at jukie.net> [021121 12:04]:
> From within a bash script I need to ask vim for the current definition
> of the 'tags' variable.
>
> So ideally I would want to do something like:
>
> foo=$(vim -c '!echo $tags')
>
> but I don't know how to get the vim variable passed to the ':! echo'
> command.
OK, I am getting closer...
:execute '!echo ' . v:tags
does almost what I want but it tells me that v:tags does not exist. So
how do I use the 'set tags' variable from within a vim-script line?
B.
--
WebSig: http://www.jukie.net/~bart/sig/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20021121/d76d7fc1/attachment.bin
More information about the OCLUG
mailing list