Last active
October 11, 2015 12:57
-
-
Save dahu/3862265 to your computer and use it in GitHub Desktop.
quiet make
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Quiet Make | |
| "~~~~~~~~~~~~ | |
| function! QuietMake() | |
| write | |
| lcd %:p:h | |
| silent! make | |
| lcd - | |
| copen | |
| if empty(len(filter(getqflist(), 'v:val["valid"]'))) | |
| cclose | |
| else | |
| wincmd w | |
| endif | |
| redraw! | |
| endfunction | |
| nnoremap <silent> <leader>ma :call QuietMake()<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment