-
Notifications
You must be signed in to change notification settings - Fork 164
:q not closing editor, ZZ not working as well #19
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
Comments
OS and python version? |
Thanks for reporting. There is indeed still a bug in :q. It happens when you start the editor without file, and then uses :edit to add a new file. I will fix that. ZZ has not yet been implemented. I'll fix that as well. |
Also there is a difference on these: ZZ is equivalent of :wq - write and close |
I found some strange behavior. I added this function
to file pyvim/key_bindings.py to function def create_key_bindings(editor): But when I press ZZ, nothing happens. But strange thing is, when I add this exact same function (only with filter=navigation_mode) to python-prompt-toolkit, file prompt_toolkit/key_binding/bindings/vi.py to function def load_vi_bindings(registry, vi_state, filter=None): it WORKS! Why? |
I've noticed that ":q" causes (even on not changed file) to say "1 more file to edit" and editor will not close. ZZ does nothing, it should be equivalent to ":q".
Also ":bd" should close a split window (":q" should too).
The text was updated successfully, but these errors were encountered: