YCM does not work for the reason given above. When I type :python import sys; print sys.version I obtain:2.7.9 (default, Dec 13 2014, 15:13:49)[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)]but when I compiled YCM, I set it up to use /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7. Doing ./python2.7 --version in this folder returns 2.7.10. I figured I could recompile vim and make it use the same python in /System/Library/Frameworks/Python.framework/Versions/2.7/bin, but I don't see a way to do so. The option --with-python-config-dir=PATH doesn't seem to do much. In fact I can see in the config.logconfigure:5872: checking for pythonconfigure:5890: found /usr/bin/pythonconfigure:5902: result: /usr/bin/pythonconfigure:5915: checking Python versionconfigure:5924: result: 2.7configure:5927: checking Python is 2.3 or betterconfigure:5932: result: yepconfigure:5935: checking Python's install prefixconfigure:5944: result: /System/Library/Frameworks/Python.framework/Versions/2.7configure:5947: checking Python's execution prefixconfigure:5956: result: /System/Library/Frameworks/Python.framework/Versions/2.7configure:5978: checking Python's configuration directoryconfigure:6000: result: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/configconfigure:6059: checking Python's dll nameconfigure:6072: result: Python.framework/Versions/2.7/Pythonconfigure:6088: checking if -pthread should be usedconfigure:6130: result: noconfigure:6141: checking if compile and link flags for Python are saneconfigure:6158: gcc -o conftest -g -O2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DPYTHON_HOME='/System/Library/Frameworks/Python.framework/Versions/2.7'  -DMACOS_X_UNIX  -L/usr/local/lib conftest.c  -framework Python >&5It looks like it will use also /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7, but when I compile and type :python import sys; print sys.version  I still get 2.7.9. The python in /usr/bin/python is also 2.7.10 and it's not a symlink to /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7. This could be conflicting I guess. I also wanted to see where the python vim is using is by typing python import sys; print sys.executable, but this returns the vim bin, not python. Any suggestions? Thanks.
Conflict between python used by vim and by YouCompleteMe
plugin you complete me;vimscript python