diff --git a/dotfiles/vimrc b/dotfiles/vimrc index 69fac7b..deacece 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -119,6 +119,11 @@ let g:syntastic_go_checkers = ['govet', 'errcheck', 'go'] " Have F5 run the tests and display errors nnoremap :SyntasticCheck :Errors +" Load vim-ycm if installed on the system level +if isdirectory("/usr/share/vim-youcompleteme") + set runtimepath+=/usr/share/vim-youcompleteme +endif + " Include a .vimrc.local if it exists if filereadable(glob("~/.vimrc.local")) source ~/.vimrc.local