vim - only load youcompleteme on osx
authorPeng Li <seudut@gmail.com>
Sat, 18 Feb 2017 18:56:47 +0000 (02:56 +0800)
committerPeng Li <seudut@gmail.com>
Sat, 18 Feb 2017 18:57:13 +0000 (02:57 +0800)
vim/vimrc

index fc97f82..1dd023a 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -296,6 +296,11 @@ nnoremap <silent> sr     :FufRenewCache<CR>
 " YouCompleteMe ----------------------------------------------------------- {{{
 "syntax on, must before the YCM,
 
+" Load YouCompleteMe only on OSX
+if !has("osx")
+    let g:loaded_youcompleteme = 1
+endif
+
 "let g:ycm_collect_identifiers_from_tags_files = 1
 let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
 " this is fix youcompleteme python error