how to go to top of file in vim

Type "gg" in command mode. This brings the cursor to the first line

NOTE:
in linux terminal, open a file with vim like below.
vim file.c
In command mode (press Esc if you are not sure) you can use.
type "gg", then cursor will point to the first line first character in file.c file


Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
vim go top of file how to move to top of file vim go to top of document in vim go to top of file in vim vim command to move top of file top of the file in vim reach to top of file vi vim reach top of file vi shortcut to go to top of file move to top of file vim move to top of file vi vim move top of file got to top of file vim vim got to top of file get to top of file in vim vim to go to the top of the file vi go to top of file vim get to top of file go to top of file vim vi to top of file vim jump to start of file how to jump first line in vim top file vim how to jump to top of file vim vim scroll to top of file how to reach top of text in vim vim go to the beginning of file how to head a vim file vim scroll to top how to go to the top in vim vim go to the top of the file vim go to last line go to start of the document vim go to beginning of file vim vim goto beginning of file vim go to beginning of file vi go to end of file go to start in vim vim shortcuts togo top of file vim move to top of file vim go to top line vim to start of file vim select first line last line vim how to reach beginning of file vim got to top start of file vim vim to top vim go to top of file get to the start of file vim how to go to the first of a line in vim how to go to the firstof line in vim vim quickly go to init vim beginning of file vim how to jump to first line how to get to top of page vim vi goto top line how to go to beginning of file in vim go to beginning of vile vim vim go to first line linux jump to first line command jump to top vim begining of the file vim vim top of file jump to beginning of page vim vim go to top beginning of file vim move to top vim top of file in vim vim first line vim top of page vim go to start of file vim move to beginning of file vim skip to beginning of file vim move to the begining of the file vim jump to firstline how to go to top of file in vim
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source