Skip to content

Instantly share code, notes, and snippets.

@Raimondi
Created August 1, 2010 04:51
Show Gist options
  • Save Raimondi/502960 to your computer and use it in GitHub Desktop.
Save Raimondi/502960 to your computer and use it in GitHub Desktop.
function! AutoCompile()
if exists('g:autocompile')
echom 'make'
unlet g:autocompile
endif
endfunction
augroup autocompile
au!
au BufWrite * call AutoCompile()
au CursorMoved * let g:autocompile = 1
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment