Skip to content

[question/feature request] Disable save_on_write for buffer #826

@Grazfather

Description

@Grazfather

Say I opened a file and made a bunch of edits, I go to save, and it auto formats everything for me.

Problem: This is in someone's repo that doesn't do autoformatting. By saving, I am basically changing every line, and making the diff huge and hard to read.

I already made the changes, so I don't want to jump through hoops to save without the formatting.

It would be nice there were an Ex command or API to toggle format on save. The autocommand could just check if this were set for the current buffer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions