Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-03-2011, 02:16 PM   #1
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Vim: Scrolling without moving the cursor.


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.
Old 04-03-2011, 03:05 PM   #2
LQ Newbie
Registered: Apr 2011
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
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.
Old 04-03-2011, 03:59 PM   #3
Senior Member
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Ctrl+e and Ctrl+y though it doesn't work if you're going off the edge of the screen...
1 members found this post helpful.
Old 04-03-2011, 04:15 PM   #4
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks a lot, Snark. If an editor had not that feature, it would surprising indeed.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
scrolling in terminal using vim, less, and more deuberger Linux - Software 2 09-30-2010 10:16 AM
Man pages with vim keybindings, and touch pad scrolling j.todd Linux - Desktop 1 10-20-2008 06:41 AM
VIM question: can I stop <Esc> moving the cursor back? xlq Linux - Software 9 06-03-2007 10:46 AM
Character under cursor in Vim 7.0. judgex Programming 1 08-14-2006 08:06 PM
Vim Cursor Color Mr_Munkey Linux - Software 0 01-06-2006 05:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration