开发者

How can you echo the existing settings in Vim?

So I'm working on updating my .vimrc file since it's a gigantic mess currently. What I'd like to be able to do 开发者_运维问答is give a command to vim to get it to echo the existing settings.

For example, in my .vimrc I have

set shortmess += r

Now, going off of the help file, I know that shortmess has currently more options turned on than r - but I don't know what they are! How do I get vim to echo the currently active settings to me?


:set, or if you just want that one option, :set shortmess?.


Two ways:

echo &shortmess

or

set shortmess
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜