Commit 3be27a70 authored by Martin Aumueller's avatar Martin Aumueller
Browse files

fakevim: 0 would go to first non-blank instead of first character of a line,

   implement ^ and 0
parent f2940adb
......@@ -788,11 +788,14 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_subsubmode = NoSubSubMode;
} else if (key >= '0' && key <= '9') {
if (key == '0' && m_mvcount.isEmpty()) {
moveToFirstNonBlankOnLine();
moveToStartOfLine();
finishMovement();
} else {
m_mvcount.append(QChar(key));
}
} else if (key == '^') {
moveToFirstNonBlankOnLine();
finishMovement();
} else if (0 && key == ',') {
// FIXME: fakevim uses ',' by itself, so it is incompatible
m_subsubmode = FtSubSubMode;
......
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