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
Marco Bubke
flatpak-qt-creator
Commits
3be27a70
Commit
3be27a70
authored
Feb 05, 2009
by
Martin Aumueller
Browse files
fakevim: 0 would go to first non-blank instead of first character of a line,
implement ^ and 0
parent
f2940adb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
3be27a70
...
...
@@ -788,11 +788,14 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_subsubmode
=
NoSubSubMode
;
}
else
if
(
key
>=
'0'
&&
key
<=
'9'
)
{
if
(
key
==
'0'
&&
m_mvcount
.
isEmpty
())
{
moveTo
FirstNonBlankOn
Line
();
moveTo
StartOf
Line
();
finishMovement
();
}
else
{
m_mvcount
.
append
(
QChar
(
key
));
}
}
else
if
(
key
==
'^'
)
{
moveToFirstNonBlankOnLine
();
finishMovement
();
}
else
if
(
0
&&
key
==
','
)
{
// FIXME: fakevim uses ',' by itself, so it is incompatible
m_subsubmode
=
FtSubSubMode
;
...
...
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