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 6715677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:38:33+00:00 2026-05-26T08:38:33+00:00

Say somewhere in my Vim buffer that I have the following: function foo() {

  • 0

Say somewhere in my Vim buffer that I have the following:

function foo() {
    return 'funday, funky, funnel cake';
}

Now I want to create a new function below this..

I start typing fun and hit Tab to bring up my autocomplete menu.
In that menu, I get (in this hypothetical order):

funday
funnel
function
funky

Normally, I would Ctrl + n twice to highlight function, which isn’t a big deal.. but what if I have 20 results and I want to get to the 10th result really fast.

Is there any known way (or plugin) to quickly jump to specific values in a Vim autocomplete menu?


Update:
Using a hack, I found a way to jump by X autocomplete options:

" j/k for up and down in autocomplete menu
inoremap <expr> j ((pumvisible())?("\<C-n>"):("j"))
inoremap <expr> k ((pumvisible())?("\<C-p>"):("k"))

" Hack to jump down x positions
inoremap <expr> 2 ((pumvisible())?("\<C-n><C-n>"):("2"))
inoremap <expr> 3 ((pumvisible())?("\<C-n><C-n><C-n>"):("3"))
inoremap <expr> 4 ((pumvisible())?("\<C-n><C-n><C-n><C-n>"):("4"))

However, my vimscript is gross. Anyone got a better way to do this?

  • 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-26T08:38:33+00:00Added an answer on May 26, 2026 at 8:38 am

    maybe you are interested in neocomplcache plugin

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

Sidebar

Related Questions

Say we have the following method: private MyObject foo = new MyObject(); // and
If I have a pointer that is pointing somewhere in a string, let's say
Let's say I put the following code somewhere in a Master page in my
A simple example: Let's say I have one alias being sourced somewhere as: alias
Say I have the following file structure: app/ app.py controllers/ __init__.py project.py plugin.py If
I'm looking to parse some information on my application. Let's say we have somewhere
Say I have a struct defined somewhere deep in low-level code used all over
Let's say I have this line somewhere in my code: <ul id=mobileBtnsBot> <li> <a
So let's say I have a form which is being sent somewhere strange (and
Imagine we have N devices (say, mobile phones) with WiFi somewhere in a big

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.