Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim using gf option with env variable

Tags:

vim

I often use gf in vim to open files. Often these file paths use environment variables. I am using tcl shell to launch some scripts. When the environment variable is used without ::env (option which is necessary for env for tcl), vim has no trouble understanding it. But when it does contain, vim is unable to use the environment variable value.

This works for gf:

$hello/bla.tcl

This does NOT work for gf:

$::env(hello)/bla.tcl

like image 816
user8253554 Avatar asked May 24 '26 20:05

user8253554


1 Answers

If there are spaces before and after the file name, you can do with

viWgf
like image 123
mattn Avatar answered May 30 '26 02:05

mattn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!