Shawn Huang
Shawn Huang

Reputation: 197

To hide "user defined completion" message at vim

The message is at bottom of vim, User defined completion ^U^P^N.

This info is no use for me.

Is it possible to hide the message?

I try to use

imap silent ^Y ^X^U

set on vimrc

But neither of the popmenu and message show.

Note: I find this issue at github. If you are insteresting in this question, you can also read the issue.

click me

Upvotes: 4

Views: 3086

Answers (3)

osirisgothra
osirisgothra

Reputation: 2237

better late than never (not quite sure which version this starts at)...

add the "c" flag to shortmess:

:set shortmess+=c

from the vim docs:

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.

Furthermore, make sure you do that after using 'set compatible' because if you don't, it will be set back to it's default after the fact. Also, some pesky plugins like to change things like this on their own, it might be worth checking to see if any script is removing the 'c' flag from your settings. [ I have some plugins that do that and it makes me tear my hair out. ]

NOTE: I am pretty sure this is a very late feature, meaning you will have to compile if you want it.

Upvotes: 8

Schminitz
Schminitz

Reputation: 334

You can hide that message by setting the option

:set noshowmode

But this will also hide the current mode (insert, visual, ...) and I guess some other stuff.

Upvotes: 4

Ingo Karkat
Ingo Karkat

Reputation: 172540

There's no way to turn that off. You'd have to modify the Vim sources and compile your own binary. Granted, this doesn't provide much information (you know which keys you've pressed to trigger that completion), but your focus should be on the completion menu far away, anyway.

Upvotes: 2

Related Questions