how to scroll faster in vim
Scrolling while keeping j
or k
pressed is too slow.
Doing 10j
multiple times isn't ideal either.
How can I go faster while keeping a key pressed ?
I'm using vim for vscode but I imagine the solution probably applies there too.
vim vim-plugin
add a comment |
Scrolling while keeping j
or k
pressed is too slow.
Doing 10j
multiple times isn't ideal either.
How can I go faster while keeping a key pressed ?
I'm using vim for vscode but I imagine the solution probably applies there too.
vim vim-plugin
Use your scroll wheel, set up terminal integration if you need to. It's 2019, don't be held back by Vim's clunky design, use modern features ;)
– Andy Ray
Jan 2 at 16:40
@AndyRay, one of the selling points of vim is that you don't have to move your hands to the mouse to perform any action, including scrolling.
– jeremysprofile
Jan 2 at 19:14
add a comment |
Scrolling while keeping j
or k
pressed is too slow.
Doing 10j
multiple times isn't ideal either.
How can I go faster while keeping a key pressed ?
I'm using vim for vscode but I imagine the solution probably applies there too.
vim vim-plugin
Scrolling while keeping j
or k
pressed is too slow.
Doing 10j
multiple times isn't ideal either.
How can I go faster while keeping a key pressed ?
I'm using vim for vscode but I imagine the solution probably applies there too.
vim vim-plugin
vim vim-plugin
asked Jan 2 at 13:32
LevLev
1,16011236
1,16011236
Use your scroll wheel, set up terminal integration if you need to. It's 2019, don't be held back by Vim's clunky design, use modern features ;)
– Andy Ray
Jan 2 at 16:40
@AndyRay, one of the selling points of vim is that you don't have to move your hands to the mouse to perform any action, including scrolling.
– jeremysprofile
Jan 2 at 19:14
add a comment |
Use your scroll wheel, set up terminal integration if you need to. It's 2019, don't be held back by Vim's clunky design, use modern features ;)
– Andy Ray
Jan 2 at 16:40
@AndyRay, one of the selling points of vim is that you don't have to move your hands to the mouse to perform any action, including scrolling.
– jeremysprofile
Jan 2 at 19:14
Use your scroll wheel, set up terminal integration if you need to. It's 2019, don't be held back by Vim's clunky design, use modern features ;)
– Andy Ray
Jan 2 at 16:40
Use your scroll wheel, set up terminal integration if you need to. It's 2019, don't be held back by Vim's clunky design, use modern features ;)
– Andy Ray
Jan 2 at 16:40
@AndyRay, one of the selling points of vim is that you don't have to move your hands to the mouse to perform any action, including scrolling.
– jeremysprofile
Jan 2 at 19:14
@AndyRay, one of the selling points of vim is that you don't have to move your hands to the mouse to perform any action, including scrolling.
– jeremysprofile
Jan 2 at 19:14
add a comment |
3 Answers
3
active
oldest
votes
I believe you're looking for a better way to navigate between say code blocks or similar sections without having to do recursive j's or k's. These are my personal favorites :
- Scrolling through screen with the cursor staying on the same line/present line by Ctrl+y and Ctrl+e
- Moving between paragraphs. Very useful for moving between code blocks(assuming no newline inside the code block :D) like different functions, classes etc by using the { and } keys.
- The best and fastest way to go to move around is by using the available visual cues like keywords on certain lines etc and searching and moving cursor to that point. You can use the / or ? key to search for a particular word and either press Esc to stop search and move to original cursor position or Enter to go to that searched keyword.
- Of course you can advance by full screens using Ctrl+F and Ctrl+B.
- You can directly go to a particular line by typing the line number in normal mode and pressing capital G. eg:- 10G
if you're still wanting to explore more navigation tricks and commands, i strongly recommend you to watch this wonderful talk.
add a comment |
If you are looking to speed up the time to get to a specific spot,
having many pages. These commands support to keep the keys press if needed to increase speed:
ctrl + f (page down)
ctrl + b (page up)
ctrl + d (scroll window downwards, normally half a a screen)
ctrl + u (scroll window upwards, normally half a a screen)
add a comment |
There are other good jumps
} .......... jump paragraph forward
{ .......... jump paragraph above
H .......... top of the window
M .......... middle of the window
L .......... bottom of the window
If you make jumps with search /pattern
you can use
Ctrl-o ...... jump to the last position (jump list)
Ctrl-i ...... jump to the next position (jump list)
To make my search faster, because my laptop makes difficult to reach /
I have this mapping:
nnoremap <space> /
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54007300%2fhow-to-scroll-faster-in-vim%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I believe you're looking for a better way to navigate between say code blocks or similar sections without having to do recursive j's or k's. These are my personal favorites :
- Scrolling through screen with the cursor staying on the same line/present line by Ctrl+y and Ctrl+e
- Moving between paragraphs. Very useful for moving between code blocks(assuming no newline inside the code block :D) like different functions, classes etc by using the { and } keys.
- The best and fastest way to go to move around is by using the available visual cues like keywords on certain lines etc and searching and moving cursor to that point. You can use the / or ? key to search for a particular word and either press Esc to stop search and move to original cursor position or Enter to go to that searched keyword.
- Of course you can advance by full screens using Ctrl+F and Ctrl+B.
- You can directly go to a particular line by typing the line number in normal mode and pressing capital G. eg:- 10G
if you're still wanting to explore more navigation tricks and commands, i strongly recommend you to watch this wonderful talk.
add a comment |
I believe you're looking for a better way to navigate between say code blocks or similar sections without having to do recursive j's or k's. These are my personal favorites :
- Scrolling through screen with the cursor staying on the same line/present line by Ctrl+y and Ctrl+e
- Moving between paragraphs. Very useful for moving between code blocks(assuming no newline inside the code block :D) like different functions, classes etc by using the { and } keys.
- The best and fastest way to go to move around is by using the available visual cues like keywords on certain lines etc and searching and moving cursor to that point. You can use the / or ? key to search for a particular word and either press Esc to stop search and move to original cursor position or Enter to go to that searched keyword.
- Of course you can advance by full screens using Ctrl+F and Ctrl+B.
- You can directly go to a particular line by typing the line number in normal mode and pressing capital G. eg:- 10G
if you're still wanting to explore more navigation tricks and commands, i strongly recommend you to watch this wonderful talk.
add a comment |
I believe you're looking for a better way to navigate between say code blocks or similar sections without having to do recursive j's or k's. These are my personal favorites :
- Scrolling through screen with the cursor staying on the same line/present line by Ctrl+y and Ctrl+e
- Moving between paragraphs. Very useful for moving between code blocks(assuming no newline inside the code block :D) like different functions, classes etc by using the { and } keys.
- The best and fastest way to go to move around is by using the available visual cues like keywords on certain lines etc and searching and moving cursor to that point. You can use the / or ? key to search for a particular word and either press Esc to stop search and move to original cursor position or Enter to go to that searched keyword.
- Of course you can advance by full screens using Ctrl+F and Ctrl+B.
- You can directly go to a particular line by typing the line number in normal mode and pressing capital G. eg:- 10G
if you're still wanting to explore more navigation tricks and commands, i strongly recommend you to watch this wonderful talk.
I believe you're looking for a better way to navigate between say code blocks or similar sections without having to do recursive j's or k's. These are my personal favorites :
- Scrolling through screen with the cursor staying on the same line/present line by Ctrl+y and Ctrl+e
- Moving between paragraphs. Very useful for moving between code blocks(assuming no newline inside the code block :D) like different functions, classes etc by using the { and } keys.
- The best and fastest way to go to move around is by using the available visual cues like keywords on certain lines etc and searching and moving cursor to that point. You can use the / or ? key to search for a particular word and either press Esc to stop search and move to original cursor position or Enter to go to that searched keyword.
- Of course you can advance by full screens using Ctrl+F and Ctrl+B.
- You can directly go to a particular line by typing the line number in normal mode and pressing capital G. eg:- 10G
if you're still wanting to explore more navigation tricks and commands, i strongly recommend you to watch this wonderful talk.
answered Jan 2 at 16:36
YedhinYedhin
60819
60819
add a comment |
add a comment |
If you are looking to speed up the time to get to a specific spot,
having many pages. These commands support to keep the keys press if needed to increase speed:
ctrl + f (page down)
ctrl + b (page up)
ctrl + d (scroll window downwards, normally half a a screen)
ctrl + u (scroll window upwards, normally half a a screen)
add a comment |
If you are looking to speed up the time to get to a specific spot,
having many pages. These commands support to keep the keys press if needed to increase speed:
ctrl + f (page down)
ctrl + b (page up)
ctrl + d (scroll window downwards, normally half a a screen)
ctrl + u (scroll window upwards, normally half a a screen)
add a comment |
If you are looking to speed up the time to get to a specific spot,
having many pages. These commands support to keep the keys press if needed to increase speed:
ctrl + f (page down)
ctrl + b (page up)
ctrl + d (scroll window downwards, normally half a a screen)
ctrl + u (scroll window upwards, normally half a a screen)
If you are looking to speed up the time to get to a specific spot,
having many pages. These commands support to keep the keys press if needed to increase speed:
ctrl + f (page down)
ctrl + b (page up)
ctrl + d (scroll window downwards, normally half a a screen)
ctrl + u (scroll window upwards, normally half a a screen)
edited Jan 2 at 15:37
answered Jan 2 at 13:42
ToolboxToolbox
643311
643311
add a comment |
add a comment |
There are other good jumps
} .......... jump paragraph forward
{ .......... jump paragraph above
H .......... top of the window
M .......... middle of the window
L .......... bottom of the window
If you make jumps with search /pattern
you can use
Ctrl-o ...... jump to the last position (jump list)
Ctrl-i ...... jump to the next position (jump list)
To make my search faster, because my laptop makes difficult to reach /
I have this mapping:
nnoremap <space> /
add a comment |
There are other good jumps
} .......... jump paragraph forward
{ .......... jump paragraph above
H .......... top of the window
M .......... middle of the window
L .......... bottom of the window
If you make jumps with search /pattern
you can use
Ctrl-o ...... jump to the last position (jump list)
Ctrl-i ...... jump to the next position (jump list)
To make my search faster, because my laptop makes difficult to reach /
I have this mapping:
nnoremap <space> /
add a comment |
There are other good jumps
} .......... jump paragraph forward
{ .......... jump paragraph above
H .......... top of the window
M .......... middle of the window
L .......... bottom of the window
If you make jumps with search /pattern
you can use
Ctrl-o ...... jump to the last position (jump list)
Ctrl-i ...... jump to the next position (jump list)
To make my search faster, because my laptop makes difficult to reach /
I have this mapping:
nnoremap <space> /
There are other good jumps
} .......... jump paragraph forward
{ .......... jump paragraph above
H .......... top of the window
M .......... middle of the window
L .......... bottom of the window
If you make jumps with search /pattern
you can use
Ctrl-o ...... jump to the last position (jump list)
Ctrl-i ...... jump to the next position (jump list)
To make my search faster, because my laptop makes difficult to reach /
I have this mapping:
nnoremap <space> /
answered Jan 2 at 16:27
SergioAraujoSergioAraujo
4,49413226
4,49413226
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54007300%2fhow-to-scroll-faster-in-vim%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Use your scroll wheel, set up terminal integration if you need to. It's 2019, don't be held back by Vim's clunky design, use modern features ;)
– Andy Ray
Jan 2 at 16:40
@AndyRay, one of the selling points of vim is that you don't have to move your hands to the mouse to perform any action, including scrolling.
– jeremysprofile
Jan 2 at 19:14