line numbers in vi and goto line in vi

  • August 28, 2012
  • vi

There are some by handy shortcuts in vi, to say the least, it’s a very comprehensive program. So here is how to turn on line numbers in vi and how to goto line in vi.

To turn line numbers on, do

[code]:set number[/code]

To jump to a specific line, a colon followed by the number will do:

[code]:42[/code]




No Comments


No comments yet.



Leave a Reply

Your email address will not be published. Required fields are marked *