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 mode: edit inner word #778

Closed
Schabernack opened this issue Jan 20, 2015 · 8 comments
Closed

Vim mode: edit inner word #778

Schabernack opened this issue Jan 20, 2015 · 8 comments

Comments

@Schabernack
Copy link

Suppose the following situation with your cursor between 3 and 4: 123|456

Expected behavior when pressing diw when using vim mode: all numbers get deleted. We stay in command mode.

Actual behavior: when i is pressed, the terminal switches to insert mode.

@sorin-ionescu
Copy link
Owner

Zsh emulates vi, not Vim, and it's not a full implementation.

@Schabernack
Copy link
Author

I wasn't aware this is a vim feature. Too bad.

@leoj3n
Copy link
Contributor

leoj3n commented Jan 21, 2015

I also wish it was a more full implementation; there's a lot missing.

@sorin-ionescu
Copy link
Owner

It's a shell, not a text editor.

@kyounger
Copy link

You can always use full vim to edit your command line: http://unix.stackexchange.com/questions/6620/how-to-edit-command-line-in-full-screen-editor-in-zsh

@leoj3n
Copy link
Contributor

leoj3n commented Jan 21, 2015

@kyounger Great! Thank you

@leoj3n
Copy link
Contributor

leoj3n commented Jan 21, 2015

For anyone else, pressing ESC+V is already implemented by modules/editor/init.zsh

@pablox-cl
Copy link

Isn't this somewhat closer to what you are trying? #636 (https://github.com/hchbaw/opp.zsh).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants