vim-mucomplete icon indicating copy to clipboard operation
vim-mucomplete copied to clipboard

Does the `noselect` option (lack of it in `completeopts`) work with `longest`?

Open psprint opened this issue 5 years ago • 3 comments

Hi, I would like to have the first completion always selected – immediately after appearing. As far as I understood, this should be achieved via:

set completeopt-=noselect
" BTW, the other options that I set are:
set completeopt+=menuone,noinsert,longest

However, this isn't the case, unless I also remove the longest option. Could someone explain me why?

psprint avatar Jul 16 '20 16:07 psprint

From :help cot:

 noinsert Do not insert any text for a match until the user selects
      a match from the menu. Only works in combination with
      "menu" or "menuone". No effect if "longest" is present.

lifepillar avatar Jul 16 '20 18:07 lifepillar

Do you want to insert the longest common text of the matches and have the first menu entry selected? I may be wrong, but I don't think that Vim supports that.

lifepillar avatar Jul 16 '20 19:07 lifepillar

Yes, this is what I want. I've created a ticket.

psprint avatar Jul 16 '20 20:07 psprint