Skip to main content

Stop Vim from autoformatting on save

Published 1 min readMarkdown

If you are editing a file and you don't want the autoformatter to run when you save a file one time, you can skip it by avoiding :w .

Why? Maybe you just want to make a quick edit to a file, and you don't want prettier to run and change the file a ton because it has never been run on this specific file.

The skip formatting for a single write, run the command :noa w which is short for :noautocmd w

No comments yet. Be the first to comment.