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

Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.

Introduction to Recursion and Backtracking

Sorting Algorithms

Introduction to C Programming Language

And More...

Speak Your Mind