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
5107caf2
Commit
5107caf2
authored
Dec 19, 2008
by
hjk
Browse files
implement 'L' in fakevim
parent
ccfe1717
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/handler.cpp
View file @
5107caf2
...
...
@@ -303,6 +303,13 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
}
else
if
(
key
==
'l'
||
key
==
Key_Right
)
{
m_tc
.
movePosition
(
Right
,
KeepAnchor
,
qMin
(
count
(),
rightDist
()));
finishMovement
();
}
else
if
(
key
==
'L'
)
{
QPoint
point
=
m_editor
->
geometry
().
bottomRight
();
int
firstPos
=
m_editor
->
cursorForPosition
(
point
).
position
();
m_tc
.
setPosition
(
firstPos
,
KeepAnchor
);
m_tc
.
movePosition
(
Up
,
KeepAnchor
,
qMax
(
count
(),
1
));
moveToFirstNonBlankOnLine
();
finishMovement
();
}
else
if
(
key
==
'n'
)
{
search
(
m_lastSearchString
,
m_lastSearchBackward
);
}
else
if
(
key
==
'N'
)
{
...
...
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