Can word movement in vim skip the symbols? -
for example, want:
http://vimdoc.sourceforge.net/htmldoc/motion.html ------>------>-----------> w w w
what vim behaves:
http://vimdoc.sourceforge.net/htmldoc/motion.html --->-->----->>---------->> w w w w w w
you this:
nnoremap w /\v(^\|\a)\zs\a<cr> onoremap w /\v(^\|\a)\zs\a<cr> xnoremap w /\v(^\|\a)\zs\a<cr>
it maps 'w' key search. search looks alphabetic character preceded either non-alphabetic character, or start of line. various different mapping modes (nnoremap
, onoremap
, xnoremap
) works in visual mode , argument operator, e.g. dw
delete our custom word rather default meaning of word.
Comments
Post a Comment