SideBySide2: Restore mapping of "j"/"Down" to "gj" and "k"/"Up" to "gk"

Currently, the cursor is moved to the far left/right when going down/up
across a SkipBar. Restore those mappings to fix the problem.

Change-Id: I7aacfbf61c4a4c37f27bc4992c937c7aef7641e0
This commit is contained in:
Michael Zhou 2013-12-09 20:32:18 -05:00
parent 359900ee9e
commit 3bc25d7008

View File

@ -95,6 +95,10 @@ class Loader {
km.remove(s);
}
CodeMirror.addKeyMap("vim_ro", km);
CodeMirror.mapVimKey("j", "gj");
CodeMirror.mapVimKey("k", "gk");
CodeMirror.mapVimKey("Down", "gj");
CodeMirror.mapVimKey("Up", "gk");
}
private static void error(Exception e) {