Commit 816f60f0 authored by hjk's avatar hjk
Browse files

fakevim: implement Ctrl-J, Ctrl-N, Ctrl-P

Funny to see what people are using instead of 'j' and 'k'...
parent e0f6d43b
......@@ -2215,7 +2215,8 @@ EventResult FakeVimHandler::Private::handleCommandMode(const Input &input)
setCursorPosition(m_jumpListRedo.last());
m_jumpListRedo.pop_back();
}
} else if (input.is('j') || input.isKey(Key_Down)) {
} else if (input.is('j') || input.isKey(Key_Down)
|| input.isControl('j') || input.isControl('n')) {
m_movetype = MoveLineWise;
setAnchor();
moveDown(count());
......@@ -2243,7 +2244,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(const Input &input)
}
endEditBlock();
finishMovement();
} else if (input.is('k') || input.isKey(Key_Up)) {
} else if (input.is('k') || input.isKey(Key_Up) || input.isControl('p')) {
m_movetype = MoveLineWise;
setAnchor();
moveUp(count());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment