As I know, when editing a file in Vim, the auto-completion will give a list of possible options for the editor to choose, and Ctrl+p
allows choosing the previous option while Ctrl+n
the next option.
Does anyone know the counterparts, except the arrow keys, when using Atom in vim mode?
I don't think there is anything besides arrow keys available, but you could override ctrl-n
and ctrl-p
key-bindings in atom-text-editor.autocomplete-active
selector. In order to do that you have to edit keymap.cson
(search for Application: Open your Keymap
in Command Palette Ctrl+Shift+P
) and add this:
'atom-text-editor.autocomplete-active':
'ctrl-n': 'core:move-down'
'ctrl-p': 'core:move-up'
It will trigger only if auto-completion list is active.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.