Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Speed up VIM cursor moving through j/k [closed]

Tags:

vim

macvim

On my friend new Mac, he scrolls from line #1 to line #100 using k in around 4 seconds. On my Mac, it takes 10 seconds. Neither of us know what causes his MacVim scrolls that fast.

Any way that I can improve the speed of scrolling on my MacVim? I already enabled ttyfast and lazyredraw

like image 756
Phương Nguyễn Avatar asked Apr 15 '14 08:04

Phương Nguyễn


People also ask

How do I scroll all the way 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

The problem might be the difference in your keyboard settings instead of Vim. Try changing the Key Repeat setting in OS X' keyboard settings and see what happens. On my MacBook this setting affects the cursor movement speed when holding h, j, k or l.

As mentioned in comments some software such as KeyRemap4Macbook can override the system settings.

Also consider using commands ^U, ^D and G instead of hjkl when navigating around longer files.

OS X keyboard settings

like image 129
Henry Heikkinen Avatar answered Nov 02 '22 01:11

Henry Heikkinen