Last Line with Cursor at the End

Cursor at end of file’s end line

• Shift + (g + $) ➨ Hold the ‘Shift’ key and then press ‘g’ and then ‘$’ . ‘Shift + g’ will move you to the last line as you have seen in above cases , and the ‘Shift + $’ will move your cursor to the end of the line.

SHIFT + g + $

• G + Shift + $ (with Caps Lock on) If your Caps Lock is on the only press ‘G’ and then press ‘Shift‘ and ‘$’ .

Caps Lock ON + G + SHIFT +$

• Ctrl + End (if supported) ➨ Press ‘Control’ and ‘End’ key at the same time, if your keyboard have Ctrl key.

Ctrl + End

• Shift + (g + a) Hold the ‘Shift‘ key and then press ‘g‘ and then ‘a‘ . ‘Shift + g‘ will move you to the last line as you have seen in above cases , and the ‘ Shift + a‘ will move your cursor to the end of the line with enabling the insert mode. Normally ‘Shift + a’ is used to go in insert mode with moving to the end of the line.

SHIFT + g + a

• G + A (with Caps Lock on) ➨ If your Caps Lock is on the only press ‘G’ and ‘A’ .

Caps Lock + G + A

• } (Curly Bracket) ➨ You have to press the Curly Bracket ‘ } ‘, to use curly bracket you have to press the ‘Shift + ]’ ( the key that have both } and ] icon)

}

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