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

[VT-20] vit; bind "q" to prompted quit #42

Closed
taskwarrior opened this issue Feb 12, 2018 · 3 comments
Closed

[VT-20] vit; bind "q" to prompted quit #42

taskwarrior opened this issue Feb 12, 2018 · 3 comments

Comments

@taskwarrior
Copy link
Collaborator

David Patrick on 2013-05-15T21:14:21Z says:

I've trained myself not to hit just "q" when quitting vit, but it took a while and I still do it.
Why not bind "q" to a prompted [ quit ? Y/n ] ? And then why not bind "Q" to an umprompted quit (like ZZ) ?
It's not like those keybindings are going to make sense for anything other than quitting, and it will mean far fewer instances of us going DOH!!

@taskwarrior
Copy link
Collaborator Author

Migrated metadata:

Created: 2013-05-15T21:14:21Z
Modified: 2014-02-09T01:16:50Z

@taskwarrior
Copy link
Collaborator Author

Scott Kostyshak on 2013-08-13T01:35:52Z says:

Fixed at 2efb496. Can you test that it does what you had in mind?

It's not like those keybindings are going to make sense for anything other than quitting

I don't necessarily agree. As I note in the commit message:

    Note that this could change in the future because it is not
    Vim-like. In Vim, 'q' starts a macro. If in Vit something
    analogous is implemented, the 'q' key might be taken.

Note that if a user does not like these bindings, they can be disabled by shortcuts (which just need to be put in ~/.vimrc):

map q=
map Q=

@taskwarrior
Copy link
Collaborator Author

David Patrick on 2013-08-13T02:15:55Z says:

Scott Kostyshak wrote:

Fixed at 2efb496. Can you test that it does what you had in mind?

will do!

It's not like those keybindings are going to make sense for anything other than quitting

I don't necessarily agree. As I note in the commit message:

I hadn't considered starting a macro! Let's see how it's behaving, thanks!

Note that if a user does not like these bindings, they can be disabled by shortcuts (which just need to be put in ~/.vimrc):
[...]

that's just brilliant!

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

1 participant