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

[Vim] w, e, b motions are skipping punctuation #9576

Closed
1 task done
hnbnh opened this issue Mar 20, 2024 · 5 comments
Closed
1 task done

[Vim] w, e, b motions are skipping punctuation #9576

hnbnh opened this issue Mar 20, 2024 · 5 comments
Labels
bug [core label] keymap / key binding Feedback for keyboard shortcuts, key mapping, etc vim

Comments

@hnbnh
Copy link

hnbnh commented Mar 20, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

When encountering a string with punctuation like : within a word, such as Hello::World

If the cursor is on the H, pressing the w key does not advance it to the W. Instead, it moves to the next line.

For example,


Hello::World
^
Test
  • Press w
Hello::World
Test
^

Environment

Zed: v0.126.2 (Zed)
OS: macOS 14.4.0
Memory: 32 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

@hnbnh hnbnh added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Mar 20, 2024
@rgbkrk rgbkrk added vim keymap / key binding Feedback for keyboard shortcuts, key mapping, etc and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Mar 20, 2024
@ConradIrwin
Copy link
Member

Hmm, this is working for me...

@hnbnh do you have any custom keybindings, or are you editing a particular file type? (vim mode respects a given language's notion of word character).

@mrnugget
Copy link
Member

Are you, by any chance, in Ruby? Because if so, I think the fix to this has been merged last week: #9170 So it should be in 0.127.x

@hnbnh
Copy link
Author

hnbnh commented Mar 21, 2024

@mrnugget Yes I was in Ruby, update to 0.127.3 fixed the issue, thank you!

@hnbnh hnbnh closed this as completed Mar 21, 2024
@sersorrel
Copy link

This still happens with - in Markdown files, which is moderately disconcerting.

@mrnugget
Copy link
Member

This still happens with - in Markdown files, which is moderately disconcerting.

Seems like that was added by @bennetbo in #7514.

And yeah, in Vim - is not part of a "word" in markdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] keymap / key binding Feedback for keyboard shortcuts, key mapping, etc vim
Projects
None yet
Development

No branches or pull requests

5 participants