Quantcast
Viewing all articles
Browse latest Browse all 5712

補完時のエコーエリアのメッセージ(^X)のチラつきを抑制する

※注意:本記事の内容は version 7.4.314 以上のVimが対象です

Vimでneocomplete等の補完プラグインを使用していると、Vimの下部が以下の様なメッセージで点滅して気になることがある。

Image may be NSFW.
Clik here to view.
無題.png

その時にはshortmessの設定をcに変更する。

" エコーエリアに補完時のメッセージを表示させない" https://github.com/vim-jp/issues/issues/305if(v:version>704||(v:version==704&& has('patch314')))setshortmess=cendif
help-shortmess
'shortmess' 'shm'       string  (Vim default "filnxtToO", Vi default: "",
                                                         POSIX default: "A")
                         global 
                         {not in Vi}
         This option helps to avoid all the hit-enter prompts caused by file
         messages, for example  with CTRL-G, and to avoid some other messages.
         It is a list of flags:
          flag   meaning when present
<中略>
           c     don't give ins-completion-menu messages.  For example,
                 "-- XXX completion (YYY)", "match 1 of 2", "The only match",
                 "Pattern not found", "Back at original", etc.

パッチは 7.4.314以降で取り込まれた様子。作成者はShougoさん。

Ctrl-x modeのメッセージを出さずにポップアップメニューのみ表示したい · Issue #305 · vim-jp/issues

yumやaptで取ってこれるVimはおそらくバージョンが古いので、有効にしたい場合は最新ソースからのビルドが必要。


Viewing all articles
Browse latest Browse all 5712

Trending Articles