christoomey / vim-tmux-navigator

Seamless navigation between tmux panes and vim splits
MIT License
5.07k stars 319 forks source link

Conflict with <C-j> and <C-k> keybindings in insert and select modes #388

Closed MohammadLashkari closed 1 month ago

MohammadLashkari commented 1 month ago

I have keymaps for and to jump to the next and previous snippet parameters in insert and select modes. However, I discovered a conflict with these keybindings when I checked your plugin's keybindings. I realized that these keybindings work in all modes by default. What is the reason for this, and wouldn't it be better if they only worked in normal mode to avoid such conflicts?

christoomey commented 1 month ago

Hmm, good point! These really should be normal mode only. I'd welcome a PR to update, and you can use the notes in this section to redefine the key bindings to use normal mode mappings.