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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -