Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To hide "user defined completion" message at vim

Tags:

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

like image 409
Shawn Huang Avatar asked Dec 11 '22 10:12

Shawn Huang


1 Answers

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.

like image 52
osirisgothra Avatar answered Jan 31 '23 23:01

osirisgothra