vim-wordmotion icon indicating copy to clipboard operation
vim-wordmotion copied to clipboard

Wrong behavior with folds

Open anuvyklack opened this issue 2 years ago • 1 comments

The behavior of the vim-wordmotion plugin doesn't correspond to the default vim w, b, e, ge motions interaction with folds.

Instead of opening fold (if foldopen option contains hor value, which is by default) vim-wordmotion moves cursor between words inside a closed fold without opening it.

anuvyklack avatar Jul 04 '22 19:07 anuvyklack

I fixed the behavior when moving into folds, but I still need to fix the behavior of moving over folds.

doc/motion.txt:

A sequence of folded lines is counted for one word of a single character.
"w" and "W", "e" and "E" move to the start/end of the first word or WORD after
a range of folded lines.  "b" and "B" move to the start of the first word or
WORD before the fold.

chaoren avatar Jul 05 '22 00:07 chaoren