Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545558 - app-editors/vim-7.4.273: bugsummary.vim plugin overrides local keymapping
Summary: app-editors/vim-7.4.273: bugsummary.vim plugin overrides local keymapping
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-04 20:44 UTC by USKLCPEI
Modified: 2018-01-14 18:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description USKLCPEI 2015-04-04 20:44:27 UTC
problem:

/usr/share/vim/vimfiles/plugin/bugsummary.vim installed with vim package specifies the normal mode mapping:

nmap <Leader>bug :call <SID>FindGetBugSummary(getline("."), col("."))<CR>

which can conflict with the user's local mappings. In my case, this mapping adds a delay to my <leader>b mapping which is used for another plugin. Ideally, such system-wide plugins should not add unsolicited mappings and instead rely on the user to set them if and when desired.

temporary workaround:

add ~/.vim/after/plugin/removemapping.vim with the following content:

unmap <leader>bug

possible solution:

remove the mapping from bugsummary.vim and allow the user to set any preferred mappings in .vimrc or elsewhere.
Comment 1 Patrice Clement gentoo-dev 2018-01-14 18:05:18 UTC
The file bugsummary.vim isn't shipped anymore (Vim 8.0 or gentoo-syntax). We can close this bug.