1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-13 14:17:07 +02:00

VIM-798 Arrow keys for window navigation commands

Add new mappings to allow window navigation with arrow keys:
- ^W-<left> as ^W-h
- ^W-<down> as ^W-j
- ^W-<up> as ^W-k
- ^W-<right> as ^W-l
This commit is contained in:
Alex Plate
2018-10-01 20:19:25 +03:00
parent 81c92cda79
commit 5529bf284a
4 changed files with 4 additions and 4 deletions

@@ -54,7 +54,7 @@ public class WindowDownAction extends VimCommandAction {
@NotNull
@Override
public Set<List<KeyStroke>> getKeyStrokesSet() {
return parseKeysSet("<C-W>j");
return parseKeysSet("<C-W>j", "<C-W><Down>");
}
@NotNull

@@ -54,7 +54,7 @@ public class WindowLeftAction extends VimCommandAction {
@NotNull
@Override
public Set<List<KeyStroke>> getKeyStrokesSet() {
return parseKeysSet("<C-W>h");
return parseKeysSet("<C-W>h", "<C-W><Left>");
}
@NotNull

@@ -54,7 +54,7 @@ public class WindowRightAction extends VimCommandAction {
@NotNull
@Override
public Set<List<KeyStroke>> getKeyStrokesSet() {
return parseKeysSet("<C-W>l");
return parseKeysSet("<C-W>l", "<C-W><Right>");
}
@NotNull

@@ -54,7 +54,7 @@ public class WindowUpAction extends VimCommandAction {
@NotNull
@Override
public Set<List<KeyStroke>> getKeyStrokesSet() {
return parseKeysSet("<C-W>k");
return parseKeysSet("<C-W>k", "<C-W><Up>");
}
@NotNull