项目概述
A code-completion engine for Vim
项目地址
https://github.com/ycm-core/YouCompleteMe
项目页面预览

关键指标
- Stars:26332
- 主要语言:Python
- License:GNU General Public License v3.0
- 最近更新:2026-01-14T10:03:23Z
- 默认分支:master
本站高速下载(国内可用)
点击下载(本站镜像)
– SHA256:c863640c9d12f46b6cce71240b41ee5f92fa44ae1104d48bb68917902485dcfd
安装部署要点(README 精选)
Supported Python runtime
YCM has two components: A server and a client. Both the server and client
require Python 3.12 or later 3.x release.
For the Vim client, Vim must be, compiled with --enable-shared (or
--enable-framework on macOS). You can check if this is working with :py3. It should say something like
import sys; print( sys.version)3.12.0 (...).
For Neovim, you must have a python 3.12 runtime and the Neovim python
extensions. See Neovim’s :help provider-python for how to set that up.
For the server, you must run the install.py script with a python 3.12 (or
later) runtime. Anaconda etc. are not supported. YCM will remember the runtime
you used to run install.py and will use that when launching the server, so if
you usually use anaconda, then make sure to use the full path to a real cpython3,
e.g. /usr/bin/python3 install.py --all etc.
Our policy is to support the python3 version that’s available in the latest
Ubuntu LTS (similar to our Vim version policy). We don’t increase the Python
runtime version without a reason, though. Typically, we do this when the current
python version we’re using goes out of support. At that time we will typically
pick a version that will be supported for a number of years.
Quick start, installing all completers
- Install YCM plugin via [Vundle][]
- Install CMake, MacVim and Python 3; Note that the pre-installed macOS system
Vim is not supported (due to it having broken Python integration).
$ brew install cmake python go nodejs
-
Install mono from Mono Project (NOTE: on Intel Macs you
can alsobrew install mono. On arm Macs, you may require Rosetta) -
For Java support you must install a JDK, one way to do this is with Homebrew:
$ brew install java
$ sudo ln -sfn $(brew --prefix java)/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
-
Pre-installed macOS system Vim does not support Python 3. So you need to
install either a Vim that supports Python 3 OR [MacVim][] with
[Homebrew][brew]: -
Option 1: Installing a Vim that supports Python 3
brew install vim
- Option 2: Installing [MacVim][]
brew install macvim
-
Compile YCM.
-
For Intel and arm64 Macs, the bundled libclang/clangd work:
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --all -
If you have troubles with finding system frameworks or C++ standard library,
try using the homebrew llvm:brew install llvm
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --system-libclang --allAnd edit your vimrc to add the following line to use the Homebrew llvm’s
clangd:viml
" Use homebrew's clangd
let g:ycm_clangd_binary_path = trim(system('brew --prefix llvm')).'/bin/clangd' -
For using an arbitrary LSP server, check the relevant
section
Quick start, installing all completers
- Install YCM plugin via [Vundle][]
- Install CMake, Vim and Python
apt install build-essential cmake vim-nox python3-dev
- Install mono-complete, go, node, java, and npm
apt install mono-complete golang nodejs openjdk-17-jdk openjdk-17-jre npm
- Compile YCM
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --all
- For plugging an arbitrary LSP server, check the relevant section
Quick start, installing all completers
- Install YCM plugin via [Vundle][]
- Install [Visual Studio Build Tools 2019][visual-studio-download]
- Install CMake, Vim and Python
- Install go, node and npm
- Compile YCM
cd YouCompleteMe
python3 install.py --all
- Add
set encoding=utf-8to your [vimrc][] - For plugging an arbitrary LSP server, check the relevant section
常用命令(从 README 提取)
$ brew install cmake python go nodejs
$ brew install java
$ sudo ln -sfn $(brew --prefix java)/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
brew install vim
通用部署说明
- 下载源码并阅读 README
- 安装依赖(pip/npm/yarn 等)
- 配置环境变量(API Key、模型路径、数据库等)
- 启动服务并测试访问
- 上线建议:Nginx 反代 + HTTPS + 进程守护(systemd / pm2)
免责声明与版权说明
本文仅做开源项目整理与教程索引,源码版权归原作者所有,请遵循对应 License 合规使用。








暂无评论内容