I recently installed fzf CLI fuzzy search utility, and the accompanying fzf.vim file with it. They both work great, and I have been enjoying my experience with them thus far.
However, I'd like to keep the default key bindings of ctrl+j and ctrl+k to move up and down through things like the buffer list when invoking fzf within vim.
Unfortunately I tend to use Neovim / Vim within tmux sessions quite frequently, and I have ctrl+j and ctrl+k to move about the various panes within a tmux window, thus not allowing me to move about the buffers list presented by fzf.
Does Vim / Neovim support a "contextual key binding"? Not sure if that is what it should be called or not", but basically I'd like to have ctrl+j work within fzf when a buffer list "window / modal" is present, and then also work to move about tmux panes when the buffer list presented by fzf is not present.
Basically I'd like to have my cake 🎂 and eat it 🍰 at the same time.
Update
fzf can be brought up within the context of the Vim command mode
, I hope that helps clarify things.
Also, forgot to mention I'm using vim-tmux-navigator to seamlessly switch between panes from a Vim session and those of a tmux session.
Below is a picture of what I attempted to describe above using words.
cheers 🍻
Chris