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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:18:12+00:00 2026-06-17T09:18:12+00:00

How can I map :E to :Explore ? I’ve installed an extension that leads

  • 0

How can I map :E to :Explore? I’ve installed an extension that leads to E464: Ambiguous use of user-defined command if I do :E now, but my fingers won’t forget the command!

I tried map :E :Explore, but that’s ugly since it makes accessing the other commands difficult.

I tried these:

cmap :E<CR> :Explore<CR>
cmap :E^M :Explore^M

(where ^M = control-v + enter) but these don’t work unless I hit enter really really fast.

  • 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-17T09:18:13+00:00Added an answer on June 17, 2026 at 9:18 am

    :E would normally suffice as is if :Explore were the only defined command that began with an E. You evidently have multiple such commands defined, so :E is ambiguous and results in an error.

    :cmap causes immediate literal substitution and thus has unwanted side effects. A slightly better alternative is :cabbrev, which can be used to define abbreviations for command mode:

    cabbrev E Explore
    

    This triggers following EEnter or ESpace. The former is desired because typing :EEnter will invoke :Explore, but the latter again has side effects in command mode.

    In order for :E to be properly aliased to :Explore, it must be defined as a separate command:

    command! E Explore
    

    However, :command E, which lists all defined commands that start with E, reveals that :E and :Explore have different properties. For example, it’s impossible to execute :E ~ because :E does not accept any arguments. Also, unlike :Explore, :E does not autocomplete directories.

    To remedy these deficiencies, :E must be defined in exactly the same way as :Explore. Executing :verbose command Explore shows the location of the script in which :Explore is defined; :E can then be defined in the same manner, with the addition of <args>:

    command! -nargs=* -bar -bang -count=0 -complete=dir E Explore <args>
    

    While it’s possible to deduce most of these attributes from the information provided by :command Explore, there can still be discrepancies, such as -bar in this case.

    N.B. If :Explore and :Example are defined, :Exp and :Exa are the shortest unambiguous commands that can be used. Explicitly aliasing :E to one of them, as above, overrides Vim’s default behavior and allows for disambiguation. However, :Ex would still be ambiguous.

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

Sidebar

Related Questions

I'm writing a lightweight ORM that can map database columns to instance fields with
Is it expected behavior that two encodings can map to the same decoding? I'm
I have image map that can I move, but this map will be so
I have made an normal form that you can enter a user´s fullname in
I read that HashTable can map same key to multiple values. That's what collision
with Fluent NHibernate i can map a one to many relationship against my User
I'm looking for a tool that can map the relationships in my database in
How I can map a service running on a specific port number to an
Can Automapper map values from a NameValueCollection onto an object, where target.Foo receives the
How can I map the value of an object collection using fluent mapping? I

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.