Skip to content

add ZQ to quit without saving#1

Open
xfnw wants to merge 1 commit into
brentr:masterfrom
xfnw:no-save-quit
Open

add ZQ to quit without saving#1
xfnw wants to merge 1 commit into
brentr:masterfrom
xfnw:no-save-quit

Conversation

@xfnw

@xfnw xfnw commented Jan 16, 2021

Copy link
Copy Markdown

ZZ or :wq quits and saves, but there is no key combination for :q! quit without saving. this pr adds vim's ZQ key combination to quit without saving.

i know a lot of vi implimentations do not have this, but it is nice to have and is not very big.

@brentr

brentr commented Jan 16, 2021

Copy link
Copy Markdown
Owner

Your patch looks fine... however...
The ZQ sequence discards all changes without feedback to the user.
I completely understand why the original author this vi clone choose to omit it.
With the :q! sequence, you can see the keystrokes on the command line as you type them.
Granted, it is two more keystrokes. I'm OK with that to avoid the prospect of losing hours of work.

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

Successfully merging this pull request may close these issues.

2 participants