Skip to content
GitLab
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
6d822351
Commit
6d822351
authored
Mar 25, 2009
by
hjk
Browse files
fakevim: more vim-ish behaviour of page up and down
parent
0807ca53
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
6d822351
...
...
@@ -1417,10 +1417,14 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
recordInsertText
(
str
);
recordEndGroup
();
}
else
if
(
key
==
Key_PageDown
||
key
==
control
(
'f'
))
{
moveDown
(
count
()
*
(
linesOnScreen
()
-
2
));
moveDown
(
count
()
*
(
linesOnScreen
()
-
2
)
-
cursorLineOnScreen
());
scrollToLineInDocument
(
cursorLineInDocument
());
moveToFirstNonBlankOnLine
();
finishMovement
();
}
else
if
(
key
==
Key_PageUp
||
key
==
control
(
'b'
))
{
moveUp
(
count
()
*
(
linesOnScreen
()
-
2
));
moveUp
(
count
()
*
(
linesOnScreen
()
-
2
)
+
cursorLineOnScreen
());
scrollToLineInDocument
(
cursorLineInDocument
()
+
linesOnScreen
()
-
2
);
moveToFirstNonBlankOnLine
();
finishMovement
();
}
else
if
(
key
==
Key_Delete
)
{
setAnchor
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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