Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to view environment variables in Vim

📅 2012-Jun-26 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ environment variables, vim ⬩ 📚 Archive

List of all environment variables in Vim.

When Vim is started, it grabs the environment variables of the operating system (like PATH) and it also sets it own internal environment variables (like MYVIMRC).

To see all the environment variables available inside Vim, type :echo $ and press Ctrl-D

To see the value that is currently assigned to a particular environment variable, for example $VIM, type :echo $VIM

For more details go here.

Tried with: Vim 7.3.46 on Windows 7 64-bit


© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧