I rebound control + H/J/K/L to navigate between splits without needing <C-W>
:
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
However, when inside a terminal opened with :terminal
, these keybinds are interpreted as terminal commands. <C-L>
clears the terminal instead of moving to the right, for example. Is it possible to use my same navigation commands inside the vim terminal?
I'm running bash in Terminal.app on Mac OS X, if that's relevant.