Moving to the end of a line in Vim can be done using the command $. When you press the $ key in Normal mode, the cursor moves directly to the end of the current line.
For example, imagine you are editing a file with multiple lines of text, and the cursor is at the beginning of a line. If you want to quickly move to the end of this line for editing or viewing, simply press the $ key, and the cursor will immediately move to the end of the line.
Additionally, if you are in Visual mode, you can also use the $ key to extend the selection to the end of the current line, which is very useful when you need to select the entire line of text.
In summary, $ is a very practical shortcut that helps users navigate and edit text efficiently in Vim.
2024年7月22日 09:49 回复