• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 389
  • Last Modified:

vi command

what is the vi command to come to top of the opened text file, for going all the way to bottom i type :ctrl+G and fo going all the way to top of the page or line 1 of the file, what is the vi command
0
wasman
Asked:
wasman
  • 3
  • 2
1 Solution
 
Seaton007Commented:
Here is a list of the vi commands: http://www.lagmonster.org/docs/vi.html

The command you are looking for is H
0
 
wasmanAuthor Commented:
for going to last line of the file , i use esc+shift+G,
what is the command i need to use for going to first line of the file, esc + shift+ H takes me to top of the screen, but i need to go first line of the file.
0
 
wasmanAuthor Commented:
i see it now , it's  esc+ 1G
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
wasmanAuthor Commented:
Thanks you
0
 
Seaton007Commented:
Whoops, sorry, yes 1G, and I think :0 also works.
0
 
farzanjCommented:
For going to the top do

gg

in the command mode

and

G

to go to the last line
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now