Reputation: 2302
In Vim I can CTRL+W+H to switch to the split screen, how could one achieve the same in IntelliJ?
Example:
I press :vsplit it opens up a split-screen, now I'd like to switch between those screens.
I found this changelog but the option I'm looking for is not yet implemented.
Someone with another solution for this?
update:
I bruteforced some key combinations and it does change the screen when I press: CTRL+W+L CTRL+W+L
Upvotes: 22
Views: 14999
Reputation: 514
So far only way I could get this to work was to add this to my .ideavimrc:
sethandler <c-h> a:vim
sethandler <c-l> a:vim
sethandler <c-j> a:vim
sethandler <c-k> a:vim
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
This is for IdeaVim version 1.11.1 on Windows 10
Upvotes: 5
Reputation: 16838
You can use Ctrl-W + h/j/k/l to navigate splits as in the original Vim. Ctrl-Wh should work. If it doesn't for you, check File | Settings | Vim Emulation and your ~/.ideavimrc config for some keyboard shortcut clashes.
There is one known issue when one split has a row of open tabs that is higher than the row of another split, then you cannot switch to it due to the miscalculation in the window coordinates.
Upvotes: 36
Reputation: 1079
Ctrl
+ ww
is a quick way to switch between windows. (Works for me on linux/intelliJ)
Upvotes: 30