Is there a way to autosave the buffer before release: make? I use MacVim and make is bound to Command-B, which is very useful, but I cannot figure out how to write a buffer before make. I looked at all the events of autocmd and nothing seemed to fit.
There QuickFixCmdPre, which must be called before make, but cannot make it work:
~ / .vimrc
function! AutoSaveOnMake () if &modified write endif endfunction autocmd QuickFixCmdPre *.c :call AutoSaveOnMake()
Chris
source share