I have word-wrap enabled and tend to have quite long lines. But moving around inside a line that\'s actually 4 lines high with \"w\" is cumbersome. I keep using / to jump to
If you choose to go the route of remapping these:
nnoremap k gk
nnoremap j gj
here are a couple others along the same lines:
nnoremap 0 g0
nnoremap $ g$
nnoremap ^ g^
$
, 0
, and ^
to move to line endpoints and then use w
and b
. Also, adding a numeric argument to w
and b
can accelerate the process, so using 6w
instead of just w
can put you about to where ou need to be.f
and t
to move to individual characters will help also. (I use this typically with punctuation. If, for example, I have four sentences on one long line 2f.
will go to the end of the second sentence)(
and )
keys are an alternative way to navigate entire sentences.set tw=72
[or 80]) can make editing them simpler. You can always join them later with J
.gj
and gk
. That way, you can treat your one wrapped line as multiple lines.If you comment on the type of data you're editing, it might make it easier for us to make suggestions.