vim config detail
https://github.com/vim/vim-win32-installer/releases
配置文件位置
windows
C:\Users\yourname\vimfiles
C:\Users\yourname\vimfiles\autoload\plug.vim
C:\Users\yourname\.vimrc
vim plug
https://github.com/junegunn/vim-plug
Installation
Download plug.vim and put it in the autoload directory.
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
command
PlugInstall [name ...] [#threads] Install plugins
PlugUpdate [name ...] [#threads] Install or update plugins
PlugClean[!] Remove unlisted plugins (bang version will clean without prompt)
PlugUpgrade Upgrade vim-plug itself
PlugStatus Check the status of plugins
PlugDiff Examine changes from the previous update and the pending changes
PlugSnapshot[!] [output path] Generate script for restoring the current snapshot of the plugins
YCM
https://ycm-core.github.io/YouCompleteMe/
有很多子模块依赖,经常下载失败
cd 到:
C:\Users\yourname\vimfiles\plugged\YouCompleteMe
执行:
git submodule update --init --recursive
安装
仅安装支持Python的版本:
./install.py
安装支持C语言家族的版本:
./install.py --clang-completer
安装支持go语言的版本:
./install.py --go-completer
安装支持Js、Java、Python、go所有语言的版本:
./install.py --all
The :YcmDiags command
Calling this command will fill Vim's locationlist with errors or warnings if any were detected in your file and then open it. If a given error or warning can be fixed by a call to :YcmCompleter FixIt, then (FixIt available) is appended to the error or warning text. See the FixIt completer subcommand for more information.
The :YcmShowDetailedDiagnostic command
This command shows the full diagnostic text when the user's cursor is on the line with the diagnostic.
The :YcmDebugInfo command
This will print out various debug information for the current file. Useful to see what compile commands will be used for the file if you're using the semantic completion engine.
Printing YouCompleteMe debug information...
-- Resolve completions: Never
-- Client logfile: C:\Users\xxx\AppData\Local\Temp\ycm_fegkm3ky.log
-- Server Python interpreter: C:\Python311\python.exe
-- Server Python version: 3.11.2
-- Server has Clang support compiled in: True
-- Clang version: clang version 15.0.1
-- No extra configuration file found
-- Server running at: http://127.0.0.1:10364
-- Server process ID: 19792
-- Server logfiles:
-- C:\Users\xxx\AppData\Local\Temp\ycmd_10364_stdout_bap_8icz.log
-- C:\Users\xxx\AppData\Local\Temp\ycmd_10364_stderr_gtlwo4_l.log
-- Semantic highlighting supported: False
-- Virtual text supported: False
-- Popup windows supported: False
cpp
https://github.com/neoclide/coc.nvim
https://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions
https://github.com/clangd/coc-clangd
:CocInstall coc-clangd
https://github.com/neoclide/coc-highlight
:CocInstall coc-highlight
https://clangd.llvm.org/installation.html#project-setup
compile_commands.json will be written to your build directory. You should symlink it
or simply copy it to the root of your source tree, if they are different.

浙公网安备 33010602011771号