From 0b109ad0c4fd1ba8a3692f01b1ef95e34718c4f3 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 4 Feb 2015 08:48:08 -0800 Subject: [PATCH] [vim] Get Xcode path for (future) YouCompleteMe --- vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vimrc b/vimrc index d3612fd..ba9a684 100644 --- a/vimrc +++ b/vimrc @@ -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 :NERDTreeToggle noremap :GundoToggle noremap :setlocal invlist