LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 76
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.
 
Old 04-03-2011, 03:05 PM   #2
Nocsaron
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
Snark1994
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
stf92
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 PM.

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