skip to main | skip to sidebar

Random

Monday, June 2, 2008

What line number you're on in vi

To find out what line you're currently at in a file in vi, type

Ctrl + g

This will also give you some other helpful info, like what % of the way through the file you're at and what column you're on.
Posted by Kathy at 11:49 PM
Labels: command, vi

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2012 (2)
    • ►  June (1)
    • ►  April (1)
  • ►  2010 (5)
    • ►  May (1)
    • ►  March (1)
    • ►  February (2)
    • ►  January (1)
  • ►  2009 (4)
    • ►  August (1)
    • ►  April (1)
    • ►  March (2)
  • ▼  2008 (20)
    • ►  November (2)
    • ►  September (4)
    • ▼  June (10)
      • tcpdump for capturing packets and headers
      • Shell script for loops
      • List only directories in Unix
      • Parenthesized search and replace in vi
      • vi search and replace with regular expressions
      • Reformatting drives in unix
      • Execute shell commands from java
      • What line number you're on in vi
      • vi commands - insert at beginning or end of every ...
      • Listing directory sizes in Unix
    • ►  May (4)

About Me

Kathy
View my complete profile