Vimrc: Conditional autocmd

How can I create an autocmd that executes a command before saving a arbitary file with the exception of those who have the FileType ‘vim’?

Something like

autocmd BufWritePre AND &ft != "vim" <my-command>

maybe make your command a function, and inside of it check the filetype?

ofc it’ll execute each time, so wasteful. :man_shrugging: