If you are using Vi/Vim editor to read a text file and want to move your cursor to the first character of the line i.e. at the start of the line, you can make use of the ^ (caret) symbol on your keyboard,Example:
- Open your file in vi editor - vi myFile.txt
- Now be on the line you want to move to the start of.
- Press ^ character on your keyboard (mostly should Shift + 6 key)
- You would see your cursor moves at the first char of the line.
⚠️ Make sure that you are not in Insert Mode, or else you would see that the character ^ will get added to the text and this shortcut won't work, press Esc (Escape) key to come out of Insert Mode and then try the command.
⚡️ On Windows Operating system keyboard you can make use of Home and End keys as well to get this behavior.
Usecase: Imagine someone is working a terminal on a file that does not have a line break (\r \n) then it would be very difficult to get to the start of the line using the right and left arrow keys!
Hashtags: #vi #vim #viMacOs #macOS #viTips #viCommands
- Generate Facebook android SDK keyhash using java code - Android
- Top 10 emerging breakthrough trending technologies - HowTos
- The Android Virtual Device myEmulator is currently running an emulator and cannot be deleted. - Android
- Sharing Multiple Images to Twitter App from your App - Twitter
- Remove Html head and body tags from ckeditor source - Html
- How to remove Floating Action Button Android Studio Blank Activity Template - Android-Studio
- hibernate.cfg.xml Configuration and Mapping xml Example - Java
- [Android Studio] failed to find Build Tools revision 23.0.0 rc1 - Android-Studio
- Android : IOException: Unable to open sync connection! - Android
- How to take a screenshot of android emulator (AVD) screen - Android
- Setup synonyms or alias or thesaurus in SharePoint - SharePoint
- Cannot start Android Studio. No JDK found - Android-Studio
- Android Studio Error: Default Activity not found - Android-Studio
- Change Android Toast Position - Android
- Running Android Lint has encountered a problem NullPointerException Error - Android