So my problem is that vim lags a little when I scroll, specially when I have multiple splits open.
I'd like to scroll in vim as in nano: when I scroll down/up it shouldn't load only a single line, it should load multiple lines.
How can I do that?
Are you actually scrolling or are you only moving the cursor?
In Vim, scrolling vertically is done with <Ce>
and <Cy>
(line-by-line), <Cd>
and <Cu>
(half-screen-by-half-screen) or <Cb>
and <Cf>
(screen-by-screen), while moving the cursor vertically is done with jk
.
You can adjust the scroll
option to alter the behavior of <Cd>
and <Cu>
使用'scrolljump'
,并将其设置为一次滚动的最小行数:
:set scrolljump=5
Have you tried the 'ttyfast' option? See:
:help 'ttyfast'
for help, and:
:set ttyfast
to enable it.
Also, what version are you using? And have you tried this with no customizations to see if something you've set is interfering?
Run it like this to omit any of your vimrc settings and plugins:
vim -u NONE
You can also use:
:set lazyredraw
will buffer screen updates instead of updating all the time. I generally enable it when I'm doing a complex macro playback. Might help you here.
You can move faster between lines in the command mode:
<number of lines> k ... UP
<number of lines> j ... DOWN
Write it without brackets of course...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.