'VSCodeVim: How do I get CTRL+P / CTRL+N non-IntelliSense completion identical to how it works in VIM?
The main thing missing in my VSCodeVim setup is Ctrl + P and Ctrl + N simple word completion when in insert mode. I have googled extensively on how to set this up, but found nothing that works the way I expect when the ms-vscode.cpptools
extension is enabled.
I do not want IntelliSense to interfere with this completion, I just want simple word completion that works in any context (e.g., comments, strings, etc). Here is an example:
int a_very_long_variable_name;
// a_ve
When I've typed a_ve
in the comment, Ctrl + P should suggest a_very_long_variable_name
(as well as any other word in the document starting with a_ve
). Ctrl + N should do the same, except that suggestions should be ordered differently compared to Ctrl + P because Ctrl + N starts looking for matching words after the cursor, not before it.
Is it possible to get this behavior in VSCode with VSCodeVim? When ms-vscode.cpptools
is enabled, I do not get suggestions at all when editing comments, not even when I have this in my settings:
"editor.quickSuggestions": {
"comments": true
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|