I know how to generally move around in command mode, specifically, jumping to lines, etc. But what is the command to jump to the end of the line that I am currently on?
How to move to end of line in Vim
editorkeyboard shortcutsvivim
Related Topic
- Eclipse – How to duplicate a whole line in Vim
- Macos – How to move the cursor word by word in the OS X Terminal
- Vim clear last search highlighting
- Your most productive shortcut with Vim
- Turning off auto indent when pasting text into vim
- Git – How to make Git use the editor of the choice for commits
- How does the vim “write with sudo” trick work
- How to exit the Vim editor
Best Answer
Just the $ (dollar sign) key. You can use A to move to the end of the line and switch to editing mode (Append). To jump the last non-blank character, you can press g then _ keys.
The opposite of A is I (Insert mode at beginning of line), as an aside. Pressing just the ^ will place your cursor at the first non-white-space character of the line.