开发者

Displaying Vim variables [duplicate]

This question already has answers here: Closed 11 years ag开发者_高级运维o.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜