From 4db0d2b6b64177699550c4f89377e7699c12514f Mon Sep 17 00:00:00 2001 From: Yinzuo Jiang Date: Wed, 5 Jun 2024 13:13:40 +0800 Subject: [PATCH] feat: completeopt+=fuzzy --- .vimrc | 3 +++ README.md | 2 +- root/.vim/doc/c-cpp-cuda.txt | 25 +++++++++++++++++++++++++ root/.vim/vimrc | 3 +++ 4 files changed, 32 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 222fe42..c4aa052 100644 --- a/.vimrc +++ b/.vimrc @@ -50,6 +50,9 @@ if has('autocmd') " vim-tiny does not have autocmd else set wildmode=list:full endif + if has('patch-9.1.463') || has('nvim') + set completeopt+=fuzzy + endif set wildignore=.git/*,build/*,.cache/* set updatetime=700 " GitGutter更新和自动保存.swp的延迟时间 " https://www.skywind.me/blog/archives/2021 diff --git a/README.md b/README.md index d5c1af2..50b7c4a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Vim/Neovim requirements: - vim 9.1+ (full features) - vim 8.2.4919+ (most of features) - vim 7.4.629+ (minimal) -- neovim 0.10.0+ +- neovim 0.11.0+ See [install/README.md](./install/README.md) for more details. diff --git a/root/.vim/doc/c-cpp-cuda.txt b/root/.vim/doc/c-cpp-cuda.txt index bdd1b31..fc2bfe8 100644 --- a/root/.vim/doc/c-cpp-cuda.txt +++ b/root/.vim/doc/c-cpp-cuda.txt @@ -32,6 +32,31 @@ CompileFlags: Remove: [-fopenmp] < clangd还没实现outgoing calls in call hierarchy https://github.com/llvm/llvm-project/pull/77556 + +clangd omp.h not found ~ + +locate /omp.h 找到omp.h文件位置,然后在`.clangd`文件中添加 + +CompileFlags: + Add: + - -isystem/usr/lib/gcc/x86_64-linux-gnu/13/include/ + +clangd / |ccls| 找不到c++系统头文件解决方法 ~ + +安装当前系统最新的libstdc++ + +> + apt search libstdc++ + apt install libstdc++-12-dev +< + +https://stackoverflow.com/questions/74785927/clangd-doesnt-recognize-standard-headers + +查看当前系统安装的libstdc++版本 +> + ls /usr/include/c++ +< + -------------------------------------------------------------------------------------- *clang-format* `:%!clang-format` or `:'<,'>!clang-format`. diff --git a/root/.vim/vimrc b/root/.vim/vimrc index fce6dca..2a83521 100644 --- a/root/.vim/vimrc +++ b/root/.vim/vimrc @@ -100,6 +100,9 @@ if has('autocmd') " vim-tiny does not have autocmd else set wildmode=list:full endif + if has('patch-9.1.463') || has('nvim') + set completeopt+=fuzzy + endif set wildignore=.git/*,build/*,.cache/* set updatetime=700 " GitGutter更新和自动保存.swp的延迟时间 " https://www.skywind.me/blog/archives/2021