christoomey / vim-tmux-navigator

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

How are you dealing with the key binding conflict of Ctrl-k and kill-line in shells? #389

Closed asmod3us closed 1 month ago

asmod3us commented 1 month ago

Not an issue, more of a usage question.

My muscle memory for Ctrl-k is tied to its behaviour in bash/zsh: kill-line. How are others using it with vim-tmux-navigator? Remapping keys (which ones and to what)?

christoomey commented 1 month ago

There's a section in the README on restoring C-l for clear screen, but the same approach would apply for the other key bindings. You can also change the mappings if you'd like pre this configuration section of the README.

Closing this now as this isn't an issue and hopefully the above notes provide enough options for you.

asmod3us commented 1 month ago

Thanks for the pointer, the hard question is what key or set of keys to use as an alternative 😄 Maybe other users can comment on what works for them?

As a side note, is detecting the position of the shell's cursor possible? To decide for either kill-line or move-up action?