禁用 vim 的 -- INSERT -- 消息

Disabling vim's -- INSERT -- message

当我进入插入模式时,vim 在我的状态栏下方显示 -- INSERT --(当然所有模式都会发生,只是举个例子):

鉴于我已经在我的状态栏中显示当前模式,有没有办法为了纯粹的美学而禁用此 -- INSERT --

我一直在帮助部分和 google 中查找,但找不到方法。这可能吗,还是我应该学会忍受它?

这由 showmode 设置控制。添加

set noshowmode

到您的 vimrc 以禁用该消息。下面复制了 :h 'showmode' 的帮助。

                                 'showmode' 'smd' 'noshowmode' 'nosmd'
'showmode' 'smd'        boolean (Vim default: on, Vi default: off)
                        global
        If in Insert, Replace or Visual mode put a message on the last line.
        Use the 'M' flag in 'highlight' to set the type of highlighting for
        this message.
        When XIM may be used the message will include "XIM".  But this
        doesn't mean XIM is really active, especially when 'imactivatekey' is
        not set.
        NOTE: This option is set to the Vi default value when 'compatible' is
        set and to the Vim default value when 'compatible' is reset.