Stop Vim from autoformatting on save
Nathan Lee
1 min read
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
0
Subscribe to my newsletter
Read articles from Nathan Lee directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by