I need to execute a function on certain file types (say c and make) when they are saved. I understand that autocmd is involved somehow but I can't figure it out.
I need something like this autocmd BufWritePreFileType c,make :call MyFunction() Any help is appreciated. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
