diff --git a/autoload/latex/util.vim b/autoload/latex/util.vim index 0e83b9f..6d1c8e7 100644 --- a/autoload/latex/util.vim +++ b/autoload/latex/util.vim @@ -344,7 +344,7 @@ endfunction function! latex#util#set_vim_executable() " {{{1 if exists('g:latex_vim_executable') | return | endif - if exists('mac') + if has('macunix') || has('gui_mac') let g:latex_vim_executable = 'mvim' else let g:latex_vim_executable = 'vim'