Re: [bugs] Allow using :x instead of :wq

On Mon, Oct 22, 2018 at 12:55:52AM -0400, Subramaniyam Raizada wrote:
> On 10/22/18 12:48 AM, Lukas Fleischer wrote:
> > It seems like auto save is not working with :q --- we should either fix
> > or document that. To me, it seems like a good idea to be able to exit
> > *without* making changes, even if auto save is enabled (in case you
> > screwed up). Not sure whether having :q do that is the best idea,
> > though.
> I think copying Vim a bit more may effective here, and shouldn't be too
> complicated:
> *  :q! quits without saving

I vote for that.

> *  :q says to use :q! or :wq instead if the file has been changed

Unless autosave is enable ("file" = on-screen contents) in which case it
should be honored.

Lars Henriksen