jeetsukumaran / vim-buffergator

Vim plugin to list, select and switch between buffers.
498 stars 49 forks source link

Change Buffergator key mappings #19

Open daveroberts opened 12 years ago

daveroberts commented 12 years ago

I'd like to change some of buffergator's key mappings in my vimrc file.

I use ijkl for navigation instead of hjkl.

As a result, when I press 'i', I want to move up, not open the selected buffer. Can I change this?

christian-oudard commented 12 years ago

I have different movement keys as well, and would also really like to change the default keybindings in the buffer catalog. Is there some way we can override the keybinding function in our vimrc?

michaelolson commented 11 years ago

Ditto. Buffergator is practically unusable for me without the ability to rebind my movement keys.

tophsic commented 10 years ago

Same for me :+1:

michaelfresco commented 6 years ago

This can actually be done. Put this in your .vimrc.

 let g:buffergator_suppress_keymaps=1

And then:

 nnoremap <silent> <Leader>b :BuffergatorOpen<CR>
 nnoremap <silent> <Leader>B :BuffergatorClose<CR>
christian-oudard commented 6 years ago

@michaelfresco We're asking about the movement keys once buffergator is open, not the key to open buffergator in the first place. I have already done a remapping similar to what you're saying.