Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3284120
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:07:08+00:00 2026-05-17T20:07:08+00:00

In vim, I use Ctrl-n to word complete while in insert mode. If there

  • 0

In vim, I use Ctrl-n to word complete while in insert mode. If there is more than one possible match, I get a dropdown from which I can select one of the possible matches using the arrow keys.

However, I don’t want to use the arrow keys; I want to use the ‘j’ and ‘k’ keys. But when I type ‘j’ or ‘k’, it inserts the letters instead of going up or down in the dropdown. Is there a way I can configure vim to do this the way I want?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:07:08+00:00Added an answer on May 17, 2026 at 8:07 pm

    See :hpopupmenu-keys.

    There is no special set of mappings for the popup menu sub-mode, but you can make a conditional insert-mode mapping:

    inoremap <expr> j pumvisible() ? "\<C-N>" : "j"
    inoremap <expr> k pumvisible() ? "\<C-P>" : "k"
    

    This makes j/k navigate the popup menu like <C-N>/<C-P>, while it is visible.

    Addendum: If you want to be able to hold in control while you type j and k, you can replace them with <C-J> and <C-K>, respectively. (See mwcz’s comment to this answer.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use _vimrc to configure my vim 7.2 (windows) default settings. One setting set
I use vim (7.1) on OpenVMS V7.3-2. I connect to VMS trough a telnet
I use Vim and Vim plugins for Visual Studio when writing C++. Often, I
How do I make vi - Vim never use tabs (converting spaces to tabs,
When I'm opening a new file in Vim and I use tab completion, it
:vimgrep looks like a really useful thing. Here's how to use it: :vim[grep][!] /{pattern}/[g][j]
When I use `gqap' command to reflow a paragraph in vim, vim seems to
For those of us that like to use the graphical version of Vim or
I am using VIM in Windows. The problem is that I want to use
Vim is acting slow when I scroll. The cursor skips some lines when I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.