:F /myDir/mySubdir/mySubSubDir/** myFile
I would rather type
:F myPathVar myFile
where in my vimrc i have myPathVar = "/myDir/mySubdir/mySubSubDir/
**". But the problem is my function automatically assumes that
myPathVar is a string. How can I change my function to make it view
myPathVar as a variable? Thanks.
On 15 déc, 02:35, lomilomi <lomilom...@gmail.com> wrote:
> So that for example instead of:
> :F /myDir/mySubdir/mySubSubDir/** myFile
> I would rather type
> :F myPathVar myFile
>
> where in my vimrc i have myPathVar = "/myDir/mySubdir/mySubSubDir/
> **". But the problem is my function automatically assumes that
> myPathVar is a string. How can I change my function to make it view
> myPathVar as a variable? Thanks.
Have a look at my :SearchInVar command in http://code.google.com/p/lh-vim/wiki/searchInRuntime
It performs what you are looking for (and it also support tab-
expansion) -- by evaluating the string obtained so it is considered as
a variable.
HTH,
--
Luc Hermitte
http://code.google.com/p/lh-vim/
http://hermitte.free.fr/vim/
thanks I'll look into it.