Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
0c68708c
Commit
0c68708c
authored
Mar 11, 2009
by
hjk
Browse files
Fixes: fakevim: improve behaviour of '.' after 'i'
parent
d3f8d16f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
0c68708c
...
...
@@ -1106,12 +1106,14 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
finishMovement
();
}
else
if
(
key
==
'i'
)
{
recordBeginGroup
();
m_dotCommand
=
"i"
;
//QString("%1i").arg(count());
enterInsertMode
();
updateMiniBuffer
();
if
(
atEndOfLine
())
moveLeft
();
}
else
if
(
key
==
'I'
)
{
recordBeginGroup
();
m_dotCommand
=
"I"
;
//QString("%1I").arg(count());
enterInsertMode
();
if
(
m_gflag
)
moveToStartOfLine
();
...
...
@@ -1192,6 +1194,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
}
else
if
(
key
==
'o'
||
key
==
'O'
)
{
recordBeginGroup
();
recordPosition
();
m_dotCommand
=
QString
(
"%1o"
).
arg
(
count
());
enterInsertMode
();
moveToFirstNonBlankOnLine
();
int
numSpaces
=
leftDist
();
...
...
@@ -1255,7 +1258,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
setAnchor
();
moveRight
(
qMin
(
count
(),
rightDist
()));
m_registers
[
m_register
]
=
recordRemoveSelectedText
();
//
m_dotCommand = QString("%1s").arg(count());
m_dotCommand
=
"s"
;
//
QString("%1s").arg(count());
m_opcount
.
clear
();
m_mvcount
.
clear
();
enterInsertMode
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment