fakevim: show a message similar to vim when pressing Ctrl-c in command mode

This commit is contained in:
hjk
2009-05-07 10:53:26 +02:00
parent b575e06553
commit 979c48fd5a

View File

@@ -1125,6 +1125,8 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_registers[m_register] = removeSelectedText();
m_mode = InsertMode;
finishMovement();
} else if (key == control('c')) {
showBlackMessage("Type Alt-v,Alt-v to quit FakeVim mode");
} else if (key == 'd' && m_visualMode == NoVisualMode) {
if (atEndOfLine())
moveLeft();