Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong behavior with folds #67

Open
anuvyklack opened this issue Jul 4, 2022 · 1 comment
Open

Wrong behavior with folds #67

anuvyklack opened this issue Jul 4, 2022 · 1 comment

Comments

@anuvyklack
Copy link

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.

@chaoren
Copy link
Owner

chaoren commented Jul 5, 2022

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 chaoren reopened this Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants