≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1508

Bug #1508: "mapping already exists" message at startup

Kind bug
Product Command-T
When 2010-03-23T03:06:27Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

From a user email:

By the way, I had mapped <leader>t to taglist. In order to call Command-T quickly, <leader>g is mapped to Command-T, but mapping already exists is reported on starting vim. Is it possible leave mapping decision to end users ?

Comments

  1. Greg Hurrell 2010-03-23T03:09:43Z

    This was actually my intention where I use <unique> in the mapping:

    nmap <unique> <silent> <Leader>t :CommandT<CR>

    Because I didn't want to overwrite any existing mappings that the user might have defined.

    But I see that I'll have to find a way to do this without allowing a warning to be emitted. As this is my first VIM plug-in will have to check out how other plug-ins do this.

  2. Greg Hurrell 2010-03-23T03:35:43Z

    Looks like this will work:

    silent! nmap <unique> <silent> <Leader>t :CommandT<CR>
  3. Greg Hurrell 2010-03-23T03:38:26Z

    Ok, marking this one as closed. The fix will be included in the 0.1.1 release.

  4. Greg Hurrell 2010-03-23T03:38:32Z

    Status changed:

    • From: new
    • To: closed
  5. Greg Hurrell 2010-03-23T16:47:53Z

    The new release is now out. Labelled it as 0.2 in the end.

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets