Last Line with Cursor at the End
• 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.
Contact Us