In Vim we can use Ctrl + N
or Ctrl + P
to finish code completion. How to configure it in IdeaVim for IntelliJ?
相关问题
- Configure gradle plugin based on future tasks
- How to make available “open this project in Intell
- Emacs shell: save commit message
- IntelliJ 2017.1.2 GOLANG debug does not work on br
- JavaFX sample issue
相关文章
- 如何让 vim 支持 .cshtml 文件的代码高亮
- JetBrains的DataGrip怎么样?
- In IntelliJ IDEA, how can I create a key binding t
- Auto-save in VIM as you type
- IntelliJ IDEA can't open projects or add SDK o
- How can I use gcc's -I command to add recursiv
- IntelliJ Subversion Authentication Required Dialog
- Vim: overloaded mapping for multiple modes
I could not get CTRL-N and CTRL-P to work after mapping them to "Cyclic Expand Word" and "Cyclic Expand Word (Backward)" in IDEA 2016.2.5 (while running IdeaVIM). Both keystrokes just did nothing.
The solution was to select "Settings" from the File Menu, then "Other Settings" -> "Vim Emulation", and set the "Handler" for Ctrl+N and Ctrl+P to "IDE" instead of "Vim".
File->Settings->Keymap->search keywords "cyclic expand word"
Alt + /
andAlt + Shift + /
work both in plain IntelliJ and with IdeaVim installed.Please see documentation on JetBrains page - it's called Hippie Completion (newer versions call this completion Cyclic Expand Word).
And of course you can always use
Ctrl + Space
,Ctrl + Shift + Space
,Ctrl + Alt + Space
.This is the way I found to make the word completion work with CTRL-N and CTRL-P, while still having the shortcuts work for DOWN and UP in lists.
In Settings -> Keymap, map CTRL-N and CTRL-P to Down and Up respectively. Then, in the Other Settings -> Vim Emulation, set CTRL-N and CTRL-P handlers to Vim.
Finally, add the following to your .ideavimrc
Add the following keymaps:
Ctrl+N
toDown
andCtrl+P
toUp
So you can easily navigate in the completions menus.