vim-wordmotion
vim-wordmotion copied to clipboard
Wrong behavior with folds
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.
I fixed the behavior when moving into folds, but I still need to fix the behavior of moving over folds.
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.