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

  • SEARCH
  • Home
  • 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 7843971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:43:56+00:00 2026-06-02T16:43:56+00:00

When I want to open a file in vim, I enter :e to see

  • 0

When I want to open a file in vim, I enter :e to see directories on my disk (set wildmenu). Vim shows me list of directories I have, then I press tab several times to choose directory I need, and when I select that directory (vim highlights it) what should I do to stop completion on current level and enter that directory?

I know that in insert mode completion it’s ctrl-y, from vim help file:

                        *complete_CTRL-Y*
When the popup menu is displayed you can use CTRL-Y to stop completion and
accept the currently selected entry.  The CTRL-Y is not inserted.  Typing a
space, Enter, or some other unprintable character will leave completion mode
and insert that typed character."

how to do that in command mode?

  • 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-02T16:43:57+00:00Added an answer on June 2, 2026 at 4:43 pm

    I think its Ctrl E in command mode

    From vim docs,

                            *complete_CTRL-E*
    

    When completion is active you can use CTRL-E to stop it and go back to the
    originally typed text. The CTRL-E will not be inserted.

    I tried this in my gVim and it works.

    EDIT: Thanks to the suggestion by @François, Ctrl D does the same thing with some additional info. ie it stops completion in the current level and also shows the contents of the current selection

    Something like

    :e eclipse-cpp-indigo-SR2-incubation-win32-x86_64\eclipse\ <Ctrl><D>
    artifacts.xml   eclipse.exe     epl-v10.html    p2\
    configuration\  eclipse.ini     features\       plugins\
    dropins\        eclipsec.exe    notice.html     readme\
    

    It is showing the contents inside the folder eclipse too apart from stopping completion at the eclipse directory level.

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

Sidebar

Related Questions

I have CSV file and Macro in VBA. I want to open CSV file
I want to open an xlsx file, I have tried the below code,but neither
I have written a code in which i want to open a HTM file
I have a html file, it has good colors in vim. But I want
In Vim, whenever I want to open a file additional to the currently open
I use Vim. I open a file. I edit it and I want to
I want to open a file in Vim like in Eclipse using Ctrl +
If you are editing a file in Vim and then you need to open
When I have a single file open, I want to open another, with the
To open a file in vim, I usually type :e and then hit tab

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.