Skip to content

Add ability to abort from Vim exit code#83

Open
sukima wants to merge 1 commit intocknadler:masterfrom
sukima:feature/allow-aborting-vim
Open

Add ability to abort from Vim exit code#83
sukima wants to merge 1 commit intocknadler:masterfrom
sukima:feature/allow-aborting-vim

Conversation

@sukima
Copy link
Copy Markdown

@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