When I am using vi
I will jump to a new line using :<line number>
. And then when I try to highlight something, I will go to visual mode, and try the same command :<line number>
. but instead of jumping to the line number that I asked, it does some weird behavior. How do I jump to a specific line while in visual mode?
In visual mode, most movement commands work the same way they do in normal mode. In this case, you can type <line_number>gg
or <line_number>G
.
In visual mode, you can type the line number you want to go to, then press shift + g to go there.
nG
where n
is the line number.
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