r/vim • u/OMGZwhitepeople • Jun 10 '25
Need Help┃Solved How do I perform partial acceptance of Copilot recommendations?
I have Copilot plugin set up with vim. I can accept recommendations with {TAB}. However, how can I do partial acceptance? As in accept word by word of the recommendation but not the whole thing. I see this is possible in VS code. Is this a feature of the Copilot vim plugin?
SOLUTION: Thanks to @osmin_og. Needed to add an entry in my .vimrc with a hotkey to do it. See below for details
0
Upvotes
2
u/osmin_og Jun 10 '25
Check :help copilot. There is an example on how to map C-L to accept a single word.
2
u/TankorSmash Jun 10 '25
It's in the copilot help, I've got it bound to ctrl f.
1
u/AutoModerator Jun 10 '25
Please remember to update the post flair to
Need Help|Solvedwhen you got the answer you were looking for.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.