Parcourir la source

add has('win32')

raa0121 il y a 12 ans
Parent
commit
7fd351e150
1 fichiers modifiés avec 9 ajouts et 8 suppressions
  1. 9 8
      .vimrc

+ 9 - 8
.vimrc

@@ -149,14 +149,15 @@ let g:neocomplcache_enable_at_startup = 1
 let g:netrw_nogx = 1 " disable netrw's gx mapping.
 nmap gx <Plug>(openbrowser-smart-search)
 vmap gx <Plug>(openbrowser-smart-search)
-
-let g:quickrun_config = { }
-let g:quickrun_config['cs'] = {
-\ 'command' : 'c:/Windows/Microsoft.NET/Framework/v4.0.30319/csc.exe',
-\ 'runmode'  : 'simple',
-\ 'exec'  : ['%c /nologo %s:gs?/?\\? > /dev/null', '"%S:p:r:gs?/?\\?.exe" %a', ':call delete("%S:p:r.exe")'],
-\ 'tempfile' : '{tempname()}.cs',
-\ }
+if has('win32') || has('win64')
+  let g:quickrun_config = { }
+  let g:quickrun_config['cs'] = {
+  \ 'command' : 'c:/Windows/Microsoft.NET/Framework/v4.0.30319/csc.exe',
+  \ 'runmode'  : 'simple',
+  \ 'exec'  : ['%c /nologo %s:gs?/?\\? > /dev/null', '"%S:p:r:gs?/?\\?.exe" %a', ':call delete("%S:p:r.exe")'],
+  \ 'tempfile' : '{tempname()}.cs',
+  \ }
+endif
 
 augroup plugin-lingr-vim
   autocmd!