LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 03:16 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Rep: Reputation: 51
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, 04: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, 04:59 PM   #3
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
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, 05:15 PM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

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


Reply


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 11:16 AM
Man pages with vim keybindings, and touch pad scrolling j.todd Linux - Desktop 1 10-20-2008 07:41 AM
VIM question: can I stop <Esc> moving the cursor back? xlq Linux - Software 9 06-03-2007 11:46 AM
Character under cursor in Vim 7.0. judgex Programming 1 08-14-2006 09:06 PM
Vim Cursor Color Mr_Munkey Linux - Software 0 01-06-2006 06:42 PM


All times are GMT -5. The time now is 10:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration