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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With