I am desperately trying to get YouCompletMe working on windows, the author clearly says that there is no official support for windows so that's fair enough. Though there is a wiki to build it on windows and you find 1/2 people online claiming they succeded in building it on windows without semantic support for C/C++...
I was wondering if I could use the compiled ycm_core.pyd
from someone else or if for obvious reasons that would not work.
I am using vim7.4 (I have both 32/64 bit versions) + python2.7 + python3.2
You can download archives of drop-in YCM plugin containing binaries (ycm_core.pyd
) from me: Vim YouCompleteMe for Windows. Both x86 and x64 architectures are provided.
If you also need bleeding-edge LLVM/Clang, you can download the binaries from me as well: LLVM for Windows. Both x86 and x64 architectures are provided.
If you are looking for up-to-date Vim with Python support, you can download the binaries from me once again: Vim for Windows. Both x86 and x64 architectures are provided, as well as support for both Python 2 (which is required by YCM) and Python 3 altogether.
Common Pitfalls
- Don't forget to have Python 2 DLL (e.g.
python27.dll
) and Python 2 Interpreter (python.exe
) in thePATH
environment variable; - Don't forget to have
libclang.dll
in thePATH
environment variable (recommended) OR right next toycm_core.pyd
; - Make sure that architectures of all 3 components (LLVM/Clang, Vim, YCM) match;
- You can find some hints on configuration in my other answer.
Adding to the accepted answer (SE won't let me comment), I got Alexander Shukaev's binaries from here: https://bitbucket.org/Alexander-Shukaev/vim-youcompleteme-for-windows/downloads
(in case the links on the other page are still broken).
来源:https://stackoverflow.com/questions/18693526/vim-completion-with-youcompleteme-on-windows