LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2008, 03:07 AM   #1
lawrence_lee_lee
Member
 
Registered: May 2007
Posts: 141

Rep: Reputation: 16
line problem in vim


For example, I have a paragraph which is 2000 characters long, but each line contains only 80 characters. Although line swapping is done in the display, it's a really tough task to move my cursor to the middle of the paragraph.

How to tackle this problem in vim?
 
Old 01-22-2008, 05:06 AM   #2
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
Jump directly into the line with ESC:linenumber or move up and down lines with 20k oder 30j - for example. M jumps to the middle line of what is shown on the screen; H and L jump n lines from top/bottom of the screen up/down.

Previous jump points can be toggled with ctrl-i and ctrl-o.
 
  


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
no colors in vim on command line rajeev1982 AIX 5 02-05-2015 11:03 AM
vim search and replace only one line hakmed Programming 5 11-07-2006 08:13 PM
VIM: ^M at end of line baikonur Programming 3 09-12-2006 05:16 AM
is it possible to do this in VIM with line wrap on? hedpe Linux - Software 5 04-19-2006 07:19 PM
Vim: Starting line numbers from 0 funkymunky Linux - Software 0 11-27-2005 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:41 AM.

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