fakevim: implement S

This commit is contained in:
hjk
2010-01-05 17:42:36 +01:00
parent 2c5a0387e8
commit b20dee565e

10
src/plugins/fakevim/fakevimhandler.cpp Executable file → Normal file
View File

@@ -1527,6 +1527,16 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_opcount.clear();
m_mvcount.clear();
enterInsertMode();
} else if (key == 'S') {
const int line = cursorLineInDocument() + 1;
setAnchor(firstPositionInLine(line));
setPosition(lastPositionInLine(line + count() - 1));
yankSelectedText();
removeSelectedText();
setDotCommand("%1S", count());
m_opcount.clear();
m_mvcount.clear();
enterInsertMode();
} else if (key == 't') {
m_movetype = MoveInclusive;
m_subsubmode = FtSubSubMode;