Possible Duplicate:
Get current value of a setting in Vim
I know that you can use :set
to change Vim settings and that you can set up a configuration file ~/.vimrc
but I'm running into some issues getting this to work with MacVim and I want to be able to display what a Vim environment variable is.
Is there a command like :show tw
or something like this that will do this?
Thanks.
:set tw?
or if you want to know where it is set as well
:verbose set tw?
For even more setting fun
:options
In addition to the accepted answer you may also use :echo &tw
.
This has the advantage that you can't accidentally set a boolean option by forgetting to add the ?
. The disadvantage is that you cannot use this method with verbose
.
精彩评论