aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/compiler.vim
blob: 37e462759e6b255d044f03f35de2b47ad6358171 (plain)
1
2
3
4
5
6
7
8
9
10
11
function! compiler#Make(compiler) abort
  if exists('b:current_compiler')
    let l:save_compiler = b:current_compiler
  endif
  execute 'compiler ' . a:compiler
  lmake!
  lwindow
  if exists('l:save_compiler')
    execute 'compiler ' . l:save_compiler
  endif
endfunction