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

in/around extra character #16

Open
rosshadden opened this issue Jul 7, 2015 · 3 comments
Open

in/around extra character #16

rosshadden opened this issue Jul 7, 2015 · 3 comments

Comments

@rosshadden
Copy link
Contributor

I'm not sure what changed, but within the past few months binds with <command>iw and <command>aw (and W) have been including an extra character.

For example, if I delete a word with diw, it deletes the trailing space as well. If I delete a word with daw, it deletes the space and the first character of the following word.

Is anyone else experiencing this?

@hchbaw
Copy link
Owner

hchbaw commented Jul 9, 2015

I've pushed the commit. It seems that you are on the zsh version 5.0.8 or greater.

PS:
The zsh-5.0.8 comes with lots of vim-ish new features for the zsh vi mode, including the operator pending mode enhancements along with the visual mode, well known text-objects and also the vim-surround's zsh port etc.

So, I've decided to obsolete opp.zsh. I'll update the README for some time.

@rosshadden
Copy link
Contributor Author

It's great news that zsh itself has implemented a lot more vim features, it shows that people are still working on it. Zsh doesn't seem to have native support for vim-surround features though, as far as I can tell. Is it hidden behind a flag or something?

Thank you for all your work on this. This project made my terminal experience so much better than I ever would have believed possible.

@hchbaw
Copy link
Owner

hchbaw commented Jul 9, 2015

Although I don't look into the zsh's documentation closer, so please take a look this hunk;
zsh-users/zsh@d257f01
There are some usages at the top of these files.

It seems that vim-surround zsh port is here:
https://github.com/zsh-users/zsh/blob/zsh-5.0.8/Functions/Zle/surround

Thank you very much for your comment!

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