Professional Documents
Culture Documents
How To View Variables in Vim - Code Yarns ? - ?
How To View Variables in Vim - Code Yarns ? - ?
Code Yarns
☰ Menu
:let
Note that this does not list environment variables, this post (2012/06/26/how-to-view-environment-variables-in-
vim/) shows how to view those.
If you find it hard to wade through the long list, you can redirect the output of this command
(http://stackoverflow.com/questions/2573021) to a buffer for further analysis. For example, to load the output of
:let into a buffer:
1 :redir @a
2 :let
3 :redir END
4 "ap
There are many types of variables in Vim and each has a special name or prefix:
To list the variables of a particular type, for example global variables, just use its prefix:
1 :let g:
Tagged:
variable,
vim
Published by Ashwin
https://codeyarns.com/2010/11/26/how-to-view-variables-in-vim/ 1/2
10/25/2019 How to view variables in Vim – Code Yarns
This site uses Akismet to reduce spam. Learn how your comment data is processed.
https://codeyarns.com/2010/11/26/how-to-view-variables-in-vim/ 2/2