kristijanhusak / vim-packager

Vim plugin manager that utilizes "jobs" and "pack" features.
MIT License
245 stars 9 forks source link

Configurable keybindings #9

Closed deathlyfrantic closed 4 years ago

deathlyfrantic commented 4 years ago

Would you consider making keybindings configurable in some way? I use <C-j> and <C-k> to move between windows and having them mapped to move between plugins here always trips me up. I could use some timer hackery to removing the bindings after they're set but that doesn't feel great.

kristijanhusak commented 4 years ago

Yeah that sounds ok. I'll probably create mappings which will be set to some defaults that can be overriden.

kristijanhusak commented 4 years ago

@deathlyfrantic I added it. You can change the mapping using autocmd:

autocmd FileType packager nmap <buffer> new_next_mapping <Plug>(PackagerGotoNextPlugin)
autocmd FileType packager nmap <buffer> new_prev_mapping <Plug>(PackagerGotoPrevPlugin)

Give it a try and let me know if it works.

deathlyfrantic commented 4 years ago

Working fine for me. Thank you!