Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
psprint opened this issue Jul 16, 2020 · 3 comments
Open

Comments

@psprint
Copy link

psprint commented Jul 16, 2020

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?

@lifepillar
Copy link
Owner

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
Copy link
Owner

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.

@psprint
Copy link
Author

psprint commented Jul 16, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants