forked from qt-creator/qt-creator
fakevim: implement S
This commit is contained in:
10
src/plugins/fakevim/fakevimhandler.cpp
Executable file → Normal file
10
src/plugins/fakevim/fakevimhandler.cpp
Executable file → Normal 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;
|
||||
|
Reference in New Issue
Block a user