The shortcut that move cursor to end of the file in vi editor save my life. I need to add a line at the bottom of a large sql file and moving the cursor to end of the file is a problem if i keep pressing “Down” arrow. With the shortcut to move the cursor to end of the file it save me a lot of time!
To move cursor to end of file in vi editor, follow the steps below:-
Advertisements
- Edit a file with vi editor
- now press ESC and press capital ‘G’ and you will see your cursor move to end of file in your vi editor!
- So to add a line at the end of the file, you just press capital ‘G’ and shift + 4 then your cursor will move to end of file and end of line 🙂
Related posts:
How to open .rar file in Mac OS X
How to install apache, php, mysql with macport in Mac OS X
Mac open dmg file No mountable file system error
How to remove email from suggestion list in Apple Mail
How to restart dock when dock hang in Mac OS X
How to disable ssh root login?
How to auto start Apache during boot time - Linux
How to send message to syslog server?
Share this with your friends:-