danchoi / ri.vim

browse ri documentation from Vim
http://github.com/danchoi/ri.vim
MIT License
114 stars 15 forks source link

make key bindings configurable #10

Closed sunaku closed 11 years ago

sunaku commented 11 years ago

Hello,

I cannot use ri.vim because it overwrites my personal ,r key bindings.

Please make the key bindings configurable, or alternatively: don't define any key bindings and let the user create his own.

Thanks for your consideration.

danchoi commented 11 years ago

You can edit lines 364-368 of the ri.vim file that you copied into your .vim/plugin folder to use the keybindings you want.

sunaku commented 11 years ago

Thanks for the hint. The if-statement around those lines indicates that the default ri.vim key bindings are only applied if the user hasn't bound the ri#OpenSearchPrompt() function to a normal-mode key sequence. So I simply defined my own key bindings before loading ri.vim in my vimrc to solve the problem. :sweat_smile:

mpereira commented 9 years ago

https://github.com/danchoi/ri.vim/pull/27