christoomey / vim-tmux-navigator

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

<C-h> and <C-l> broken inside netrw(neovim). is there any way to fix? #379

Closed Ask-786 closed 1 month ago

heiskane commented 1 month ago

Seems like this is caused by netrw overriding the <C-l> keybind. The <C-h> works fine for me so that one might be overriden by you config but heres a fix for <C-l>. In vim:

let g:Netrw_UserMaps = [["<C-l>","<C-U>TmuxNavigateRight<cr>"]]

Or in neovim:

vim.g.Netrw_UserMaps = { { "<C-l>", "<C-U>TmuxNavigateRight<cr>" } }