vim noa

Vim is a command that runs what you call without autocommands on. This is typically used when you have some commands for formatting, most auto formatters are...

Vim :noa is a command that runs what you call without autocommands on. This is typically used when you have some BufWritePre commands for formatting, most auto formatters are implemented this way in vim. It can be super useful if you have something like a yaml/json file that you have crafted perfectly how you want it, maybe it has some source code for a small script or sql embeded and your formatter wants to turn it into one line. You could get a better formatter, but for these one off cases that aren’t a big bother to me I run :noa w.

:noa w

Connections

Related tags and posts connected to this entry.