Eli the Bearded <*@
eli.users.panix.com> wrote:
> Add { and } to isfname and it works for me:
>
> :set isfname
> isfname=@,48-57,/,.,-,_,+,,,#,$,%,~,=
>
> :set isfname=@,48-57,/,.,-,_,+,,,#,$,%,~,=,{,}
>
> Then 'gf' tries to open the whole thing starting at the "${", and since
> it is an environment variable, it expands as expected.
That works like a charm! Thanks a lot.
For the time being I will add those chars to the isfname for every file, but
since I will most likely incur into this situation only on *.args file I could
do something like this:
function! toggleisfname
if &ft = 'args'
set isfname=@,48-57,/,.,-,_,+,,,#,$,%,~,=,{,}
else
set isfname=@,48-57,/,.,-,_,+,,,#,$,%,~,=
endfunction
That would imply that I will set the args filetype everytime I am in an *.args
file.
>
> Elijah
> ------
> you might want unicode in that if you are using it in filenames though