Vim completion with YouCompleteMe on windows

一笑奈何 提交于 2019-11-28 22:33:26

问题


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


回答1:


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.



回答2:


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!