basic implementation of 'I'

This commit is contained in:
hjk
2008-12-28 02:44:43 +01:00
committed by Roberto Raggi
parent 0dc5a124bf
commit c480442a82

View File

@@ -448,6 +448,12 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
m_mode = InsertMode;
m_tc.beginEditBlock();
m_lastInsertion.clear();
} else if (key == 'I') {
m_mode = InsertMode;
moveToFirstNonBlankOnLine();
m_tc.clearSelection();
m_tc.beginEditBlock();
m_lastInsertion.clear();
} else if (key == 'j' || key == Key_Down) {
m_tc.movePosition(Down, KeepAnchor, count());
finishMovement();