Move vertically by visual line

3 Points

Florian Beer Florian Beer

4 years ago

This allows to move around lines visually. If there is a visually wrapped line, j and k won't skip over the wrapped part of the line.

nnoremap j gj
nnoremap k gk