You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Autocomplete breaks second order ins-completion #18044
I am not sure what the correct behavior ought to be. With :set ac when I type ^X^L on an empty line, I see a list of lines. If I type it again, the menu gets dismissed as it should be. Without autocomplete, it opens a newline when the keys are typed again (not correct). What is your use case for ^X^L?
The second <C-X><C-L> should insert the next line after the one you just completed, see this part of the docs:
CTRL-X CTRL-L After expanding a line you can additionally get the
line next to it by typing CTRL-X CTRL-L again, unless
a double CTRL-X is used. Only works for loaded
buffers.
Here's an example:
Follow-up compl-current is also affected, and probably compl-keyword and compl-define.
Follow-up compl-vim completion behaves as it should.
Activity
girishji commentedon Aug 18, 2025
Can you try with #18048 and see it there is improvement.
gravndal commentedon Aug 19, 2025
That pr doesn't make a difference for this as far as I can tell.
As a temporary workaround, creating mappings like this works:
Though I don't know if that helps you pinpoint the issue.
girishji commentedon Aug 19, 2025
I am not sure what the correct behavior ought to be. With
:set acwhen I type^X^Lon an empty line, I see a list of lines. If I type it again, the menu gets dismissed as it should be. Without autocomplete, it opens a newline when the keys are typed again (not correct). What is your use case for^X^L?gravndal commentedon Aug 19, 2025
The second
<C-X><C-L>should insert the next line after the one you just completed, see this part of the docs:Here's an example:
Follow-up
compl-currentis also affected, and probablycompl-keywordandcompl-define.Follow-up
compl-vimcompletion behaves as it should.Fix: Issue vim#18044
Fix: Issue vim#18044
patch 9.1.1670: completion: autocomplete breaks second completion
vim-patch:9.1.1670: completion: autocomplete breaks second completion
vim-patch:9.1.1670: completion: autocomplete breaks second completion
vim-patch:9.1.1670: completion: autocomplete breaks second completion
gravndal commentedon Aug 24, 2025
Sorry I'm a bit late, but does patch 9.1.1670 actually fix this for you @girishji?
The example in the asciicast above still doesn't work for me with:
And
girishji commentedon Aug 25, 2025
The PR #18068 was not merged before closing. Please wait for chrisbra to remedy this.
girishji commentedon Aug 26, 2025
#18068 (comment)
gravndal commentedon Aug 26, 2025
That fixed it, thanks.
patch 9.1.1670: completion: autocomplete breaks second completion
vim-patch:9.1.1670: completion: autocomplete breaks second completion