I have this mapping to move by visible line when wrap is enabled
nnoremap <silent> j gj
nnoremap <silent> k gk
But when I use a count (like 10 j
), I expect to move by actual lines
How to make something like this
nnoremap <silent> j (moving_with_repeat ? j : gj)
nnoremap <silent> k (moving_with_repeat ? k : gk)