if exists( 'g:vim_local_path' ) let g:vimmake_path = g:vim_local_path . 'scripts' let g:vimmake_mode = {} let g:vimmake_mode['clean'] = 'async' let g:vimmake_mode['build'] = 'async' let g:vimmake_mode['rebuild'] = 'async' let g:vimmake_mode['test'] = 'async' function! DoBuild(full) silent call vimmake#toggle_quickfix(12,1) if a:full == 0 VimTool build else VimTool rebuild endif endfunc function! KillBuild() silent call vimmake#toggle_quickfix(0) VimStop endfunc function! RunTest() silent call vimmake#toggle_quickfix(12,1) VimTool test endfunc augroup QuickfixStatus au! BufWinEnter quickfix setlocal \ statusline=%t\ [%{g:vimmake_build_status}]\ %{exists('w:quickfix_title')?\ '\ '.w:quickfix_title\ :\ ''}\ %=%-15(%l,%c%V%)\ %P augroup END noremap :silent call vimmake#toggle_quickfix(12) inoremap :silent call vimmake#toggle_quickfix(12)li noremap :silent call DoBuild(0) inoremap :silent call DoBuild(0)li noremap :silent call DoBuild(1) inoremap :silent call DoBuild(1)li noremap :silent call KillBuild() inoremap :silent call KillBuild()li noremap :silent call RunTest() inoremap :silent call RunTest()li endif