LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Vim: Scrolling without moving the cursor. (https://www.linuxquestions.org/questions/linux-newbie-8/vim-scrolling-without-moving-the-cursor-872741/)

stf92 04-03-2011 02:16 PM

Vim: Scrolling without moving the cursor.
 
Hi:

Suppose the cursor is in line 20. I want now to scroll one line at a time but I want the cursor to remain at line 20. How is this done? Thanks.

Nocsaron 04-03-2011 03:05 PM

I'm pretty sure you can't do that with the standard VIM commands. It may be possible if you write your own script into your .vimrc file.

Snark1994 04-03-2011 03:59 PM

Ctrl+e and Ctrl+y :) though it doesn't work if you're going off the edge of the screen...

stf92 04-03-2011 04:15 PM

Thanks a lot, Snark. If an editor had not that feature, it would surprising indeed.


All times are GMT -5. The time now is 05:33 AM.