It’s very slow to move the cursor to the end of a long line in vi editor. But if you know the shortcut key, move cursor to end of the line is just a key press. Holding the right button and wait the cursor move to the end of the line is a slow method, wat we need is fast and efficient.
To move cursor to the end of a line, follow the steps below:-
Advertisements
- Start your terminal and edit a file with your vi editor
- now move your cursor to the a long line and press
Shift + 4
- You will see your cursor jump to the end of the line, cool right!
To move the cursor to the beginning of the line, you may press 0 (numeric zero).
Related posts:
How to verify SHA-1 checksum in Mac OS X?
How to install LAMP (Apache, PHP and MySQL in Linux) using Yum
How to create bootable Linux USB drive - UNetbootin
How to add Primary and Secondary DNS server - /etc/resolve.conf - Linux
How to split large file into several smaller files - Linux
Mac open dmg file No mountable file system error
CentOS 7: How to setup TUI Firewall settings?
How to password protect folder in Mac OS X
Share this with your friends:-
The correct keys are 0 and $.
It just happens that shift+4 is the same as the key $ on qwerty keyboard, but this is very specific (there are so many keyboard types).