Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-16-2006, 01:42 AM   #1
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
how may I go to a special line number with vim?

when I'm reading a text with vim, how may I give a line's number and land on it?
Old 08-16-2006, 01:46 AM   #2
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Finally got it!
for example:
type :42

Maybe it will help someone else.
Old 08-16-2006, 03:07 AM   #3
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
'G' is for last line.
'1G' is for first line.
'xxxG' is for line xxx.



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
is it possible to do this in VIM with line wrap on? hedpe Linux - Software 5 04-19-2006 06:19 PM
How can I search a special variable name in vim? faezeh Fedora 2 03-22-2005 06:47 AM
Switching off line number colors on vi or vim raees Linux - Software 4 04-21-2004 07:31 AM
Vim editor, right hand bottom number count jules_fraser Linux - Newbie 15 12-06-2003 06:18 PM
perl: replacing a special line in a file markus1982 Programming 1 09-26-2002 02:05 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:47 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