What is the autocmd for 'on file save'

I’m using BufWrite but that one seems to trigger every time I edit the buffer, even without :w writing.

What is the autocmd event that only triggers when I :w write to the file/save it? is it FileWrite?

BufWrite should be run only when you save a file. do you by any chance have a plugin that automatically saves the buffer?

1 Like