[vim] Get Xcode path for (future) YouCompleteMe

This commit is contained in:
Eryn Wells 2015-02-04 08:48:08 -08:00
parent ef1da9ff0e
commit 0b109ad0c4

8
vimrc
View file

@ -175,6 +175,14 @@ let g:snipMate.scope_aliases["java"] = "android"
" set the Gundo preview window on the bottom
let g:gundo_preview_bottom = 1
if has('mac')
let g:xcode_path = system('xcode-select -p')
let s:clang_library_path = g:xcode_path . 'Toolchains/XcodeDefault.xctoolchain/usr/lib'
if isdirectory(s:clang_library_path)
let g:clang_library_path = s:clang_library_path
endif
endif
noremap <silent> <F2> :NERDTreeToggle<CR>
noremap <silent> <F3> :GundoToggle<CR>
noremap <silent> <F4> :setlocal invlist<CR>