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

Add ability to abort from Vim exit code #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sukima
Copy link

@sukima sukima commented Mar 4, 2018

In many cases where Vim is used as an intermediate step in a series of steps it is helpful to abort when the user explicitly exits vim with a non-zero exit code.

What that means in this project is that if the user who is editing the buffer decides that he/she does NOT wish to overwrite the clipboard (maybe they realized they have something important) they would quit Vim with :cq instead of the normal ways. This means they can write the file all they want and it will not be copied to the clipboard if they use the :cq command.

Granted the utility of this is debatable making this change optional.

In many cases where Vim is used as an intermediate step in a series of
steps it is helpful to abort when the user explicitly exits vim with a
non-zero exit code.

What that means in this project is that if the user who is editing the
buffer decides that he/she does NOT wish to overwrite the clipboard
(maybe they realized they have something important) they would quit Vim
with `:cq` instead of the normal ways. This means they can write the
file all they want and it will not be copied to the clipboard if they
use the `:cq` command.

Granted the utility of this is debatable making this change optional.
@sukima sukima force-pushed the feature/allow-aborting-vim branch from 260b202 to b2861db Compare March 4, 2018 19:25
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.

1 participant