Questions tagged [variables]

For questions about vimscript variables, their scopes, and usages.

4 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
316 views

Why gf is not working with variable?

If there is no variable in path, gf can open the file. Added sfname+={,} to .vimrc to support ${VARIABLE}. :!echo ${VAR}/test/file can correctly print full path with ${VAR} expanded. But if run 'gf' ...
1
vote
0answers
199 views

How to open a file with variable in the path?

gf runs fine with absolute or relative path. Is it possible to open a file with variable in the path? For example, in a tcl file: ... set FILE_ROOT /user/abc ... read_file ${FILE_ROOT}/some/path/...
1
vote
0answers
70 views

why is b:changedtick never zero?

As the Title states b:changedtick is never zero. No plugin or special setting seems to be involved. Even : vim -u NONE -U NONE :echo b:changedtick returns a value != 0 The same happens if I start ...
1
vote
0answers
516 views

Invoking a command with a defined variable results in “undefined variable”

I'm trying to integrate opam-user-setup's output with vim-plug. I've produced the following: let s:opam_share_dir = system("opam config var share") let s:opam_share_dir = substitute(s:opam_share_dir, ...