Move cursor x lines from current position in vi/vim

Yep, of course there’s a way. j and k move down and up one line, so 10j and 10k move down and up ten lines. You can repeat any motion by putting a number before it.

You might also want to set relativenumber if this is something you do a lot of – it’ll help save you counting by printing line numbers relative to the current line, instead of absolute numbers.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)