How can I move the cursor to, say, position 25 on the current line?
Show activity on this post. You can also use g; and g, to move back- and forward in the list of your previous edit locations.
If we are in the vim editor, then simply do this, “Press the ENTER key, write the Line number, and press Shift+ g”: Again the output is the same.
You can type f<character> to put the cursor on the next character and F<character> for the previous one.
In short press the Esc key and then press Shift + G to move cursor to end of file in vi or vim text editor under Linux and Unix-like systems.
In normal mode, use the pipe character:
25|
will move you to column 25 on the same line
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With