Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim completion with YouCompleteMe on windows

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

like image 706
statquant Avatar asked Sep 09 '13 07:09

statquant


People also ask

How install complete me Vim?

On Windows, be sure that the build utility msbuild is in your PATH. Go support: install Go and add it to your path. Navigate to YouCompleteMe/third_party/ycmd/third_party/gocode and run go build . TypeScript support: as with the quick installation, simply npm install -g typescript after successfully installing Node.

Where is Ycm_extra_conf PY?

ycm_extra_conf.py. The original file can be found in my dotfiles repository.


1 Answers

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.
like image 103
Alexander Shukaev Avatar answered Sep 22 '22 13:09

Alexander Shukaev