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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:39:25+00:00 2026-06-17T04:39:25+00:00

Is there an option to auto-complete a currently typed command with one from the

  • 0

Is there an option to auto-complete a currently typed command with one from the history, without using the direction keys?
This an extension to this question: How do you search through vim’s command history?.

The answer was, after typing :somecommand to use the <up> key. I would think it is more vim-like not to have to lift the hand to go to the direction keys.

From :help cmdline-completion, I tried, Ctrl-N, Ctrl-P, Ctrl-D, Ctrl-L without success.
Here’s maybe a related part of my vimrc.

set completeopt=menu,longest,preview
set showcmd     
set wildchar=<Tab> wildmenu wildmode=longest,list,full
set wildcharm=<C-Z>

I’m aware of the command line window invoked with q: or :Ctrl-F and the Ctrl-N and Ctrl-P to go through the history linearly after typing :.

  • 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-06-17T04:39:26+00:00Added an answer on June 17, 2026 at 4:39 am

    You can always map this to something. I once tried using

    cnoremap <C-p> <Up>
    

    , but this will disable completion cycling so you should better deduce something else (there is no way like pumvisible() to determine whether completion is active in command mode).

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

Sidebar

Related Questions

How to code auto-complete to immediately trigger when there is only one unique option?
Is there an option to show the full command when using an alias? Example:
I am currently using the Jquery-UI auto-complete plugin combobox implementation, but i changed the
I have added search option to a project. There I used jquery auto complete
Using django comments framework http://docs.djangoproject.com/en/dev/ref/contrib/comments/ Not sure is there option, to make all comments
Is there an option for the curl command to show only a percentage output
Is there any option to call msi file from CreateProcess in c language in
I am trying to build an auto complete using Solr (TermsComponent) and Rails. Now
There are nice documentation on the jquery ui site on showing auto-complete options categorized
Im currently using This JQuery as a search box on my website. The Javascript

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.