> If you happen upon a plugin that simply does something like this:
>     nnoremap <C-x><C-p> :call <SID>MyFunc()<CR>
one line
> Kindly ask the plugin author to change it into this:
>     nnoremap <silent> <Plug>(PluginNameMappingName) :call <SID>MyFunc()<CR>
>     if ! hasmapto('<Plug>(PluginNameMappingName)', 'n')
>     nmap <C-x><C-p> <Plug>(PluginNameMappingName)
>     endif
4 lines

My vision is:
  - less docs
  - clean interface which can be read and understand by users
  - follow the principle "Don't repeat yourself".
Your solution works - but is hard to read.

Do you call this being an improvement? With my suggestion the user could
remap it without any additional effort himself. This would keep the
interfaces of plugins much cleaner. Yes - you can define your own
Noremap commands - but isn't creating mappings and providing interfaces
and allowing customizations the most trivial feature Vim should provide?

Marc Weber

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui