Move cursor x lines from current position in vi/vim -
is there way move cursor relative amount of lines in vi/vim? have cursor 10 lines under block of code want remove. if have line numbers shown in relative order, nice have "jump 10 lines command" take there.
or perhaps it's better have absolute line numbers shown , go xgg x line number?
yep, of course there's way. j
, k
move down , 1 line, 10j
, 10k
move down , ten lines. can repeat motion putting number before it.
you might want set relativenumber
if lot of - it'll save counting printing line numbers relative current line, instead of absolute numbers.
Comments
Post a Comment