Skip to content

Commit

Permalink
Fixed VimProcInstall
Browse files Browse the repository at this point in the history
There are some syntax errors, and lcd to incorrect directory
  • Loading branch information
ichizok committed Jan 22, 2015
1 parent ae8171a commit 4c496c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/vimproc.vim
Expand Up @@ -48,15 +48,15 @@ function! s:install(args) "{{{
try
if executable('gmake')
let &makeprg = 'gmake'
else if executable('make')
elseif executable('make')
let &makeprg = 'make'
else if executable('nmake')
elseif executable('nmake')
let &makeprg = 'nmake -f make_msvc.mak nodebug=1'
endif

" Change to the correct directory and run make
execute 'lcd' fnameescape(fnamemodify(g:vimproc#dll_path, ':h'))
make a:args
execute 'lcd' fnameescape(fnamemodify(g:vimproc#dll_path, ':h:h'))
execute 'make' a:args
finally
" Restore working directory and makeprg
execute 'lcd' fnameescape(savecwd)
Expand Down

0 comments on commit 4c496c7

Please sign in to comment.