How to configure in IdeaVIM Ctrl + N and Ctrl + P completion from Vim?

前端 未结 6 1546
栀梦
栀梦 2021-01-31 08:42

In Vim we can use Ctrl + N or Ctrl + P to finish code completion. How to configure it in IdeaVim for IntelliJ?

6条回答
  •  暖寄归人
    2021-01-31 09:07

    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 additionally 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".

提交回复
热议问题