Vim completion with YouCompleteMe on windows

statquant picture statquant · Sep 9, 2013 · Viewed 9.1k times · Source

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

Answer

Alexander Shukaev picture Alexander Shukaev · Sep 19, 2013

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


  1. Don't forget to have Python 2 DLL (e.g. python27.dll) and Python 2 Interpreter (python.exe) in the PATH environment variable;
  2. Don't forget to have libclang.dll in the PATH environment variable (recommended) OR right next to ycm_core.pyd;
  3. Make sure that architectures of all 3 components (LLVM/Clang, Vim, YCM) match;
  4. You can find some hints on configuration in my other answer.