You are not logged in.

#1 2011-01-16 22:23:01

geo909
Member
Registered: 2008-09-07
Posts: 309

[SOLVED] Vim: scrolling down while keeping cursor in middle of screen

Hello all,

I am using vim and I think I have accidentally pressed some key combination or something,
that triggered the following functionality: now, when I press j or k, the text scrolls down or up
but the cursor is always in the middle position..

Does anybody know how did I do that?! I find it really convenient. I did some googling but
couldn't figure out anything.

Thanks a lot in advance.

Last edited by geo909 (2011-01-16 23:52:36)

Offline

#2 2011-01-16 23:16:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Vim: scrolling down while keeping cursor in middle of screen

Offline

#3 2011-01-16 23:51:54

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: [SOLVED] Vim: scrolling down while keeping cursor in middle of screen

That's exactly what I wanted, many thanks!

Offline

#4 2011-01-16 23:54:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Vim: scrolling down while keeping cursor in middle of screen

geo909 wrote:

That's exactly what I wanted, many thanks!

I'm at loss why haven't you found it, as googling for 'vim keep cursor in the middle' returned it as the first hit.

Offline

Board footer

Powered by FluxBB