How do I check the value of an environment variable in the .vimrc
file? You can use prefix the environment variable name with the ‘$’ character to use it from a Vim script/function. You can refer to the value of an environment variable using the $env_var syntax:
if $EDITOR == 'vi'
endif
Comments (1)
Pepsh Pepshinsky
Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE