:30
will move my cursor to the beginning of line 30.
How can I tell Vim to place the cursor at line y, column x? Is this possible without using the arrow keys or h
, j
, k
, l
keys?
I am running Vim version 7.3.429.
If you want to show the current column of cursor, then type :echo col('. ').
Try a number followed by a pipe to get to the specified column in that line.
80|
should get you to position 80 in that line.
EDIT: If you are looking to go to a specific x,y position, I am not sure on that one.
Not sure it's in any way more convenient, but you can call the cursor
function directly:
:cal cursor(30, 5)
will jump to line 30, column 5.
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