Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim Scrolling Slowly

Vim is acting slow when I scroll. The cursor skips some lines when I'm pressing j/k continually.

I'm using xterm and urxvt. In both vim acts like this.

This happens locally, with small or big files. I do use Control + F/B they work just fine.

EDIT: ttyfast in small files did the trick but in bigger is the same. When running without customization it goes allright.

like image 909
LuRsT Avatar asked Nov 20 '08 22:11

LuRsT


People also ask

How do I scroll faster in Vim?

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 .

Why is my Vim so slow?

First, get a feel for how fast Vim can be: run with vim -u NONE and comment out everything in your . vimrc - then do the single thing that seems slow. Run without the -u NONE and compare. It should be just as fast, or some plugin is autoloaded and is causing problems.

How do I scroll down in Vim?

You can make Vim scroll the text using the shifted up/down arrows by mapping Shift-Up to Ctrl-Y and Shift-Down to Ctrl-E. Shift-Down will then scroll down (like moving a scroll-bar down, or like moving a cursor at the bottom of a window down), and Shift-Up will then scroll up (like moving a scroll-bar up, etc).


1 Answers

: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.

like image 89
Cyber Oliveira Avatar answered Nov 13 '22 12:11

Cyber Oliveira