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 create shortcut in Mac OS X
How to force quit program in Mac OS X
CPAN Error: make test had returned bad status, won't install without force
How to disable dashboard in Mac OS X
How to create password protected zip file in Mac OS X
How to find your MAC address in Mac and Window
How to batch resize image in Mac OS X
How to format external hard disk for Mac and Windows
Share this with your friends:-