Last Line with Cursor at the Beginning

Cursor at start of file’s end

• Shift + g ➨ If you are in normal mode then press ‘Shift + g’ , or if you are in Insert mode then press ‘Esc + Shift + g’. The ‘Esc‘ key exits you from the insert mode and shift is used to capitalize the letter ‘g‘.

Shift + g

• G (with Caps Lock on) ➨ If you have your Caps Lock ON, then simply press the ‘G’ key or if in insert mode then exit by pressing ‘Esc‘ then press G key – ‘Esc + G’

Caps Lock ON + G

• :$ ➨ First press Esc to ensure be in normal mode the type ‘:$’ and then hit enter.

:$ + Enter

:$ + Enter

• ]] (Double Square Brackets) ➨ First ensure to be in normal mode the press ‘]]’ (square brackets twice).

]]

Vim – Go to End of File

In this article you will get to know many ways to go to the end of any file opened using Vim (Vi Improved) which is a open source text editor. You will get to know what vim is and many shortcuts and key combinations in the entire article to navigate to the end of the file and after that, you can decide which is best suitable for you and which will make your workflow fast.

Similar Reads

What is Vim?

Vim which stands for Vi Improved is an open source text editor developed by Bram Moolenaar. It is the improved version of the Vi editor which was developed by Bill Joy and thus got its name Vi Improved (Vim). It comes default installed by mostly with every UNIX system. Vim is a highly efficient and fast editor with a very small size, which current version is just 7kb in size and is suitable for complex editing tasks. It supports many programming languages. It is also highly customizable as you can add extra features to it by using many plugins and extensions....

How to Go to the End of File in Vim Editor?

The End of File can be interpreted in 2 ways –...

1. Last Line with Cursor at the Beginning

Cursor at start of file’s end...

2. Last Line with Cursor at the End

Cursor at end of file’s end line...

Vim Go to End of File -FAQs

What is Vim?...

Conclusion

Now you know many ways and key combinations to reach to the end of your file in Vim editor. You need to choose one for navigating the vim file in order to be productive and for fast working. And remember to be in normal mode always to use keys combinations and shortcuts....

Contact Us