崩溃日志
1 spacevim 安装 youcompleteme
官方教程-自动补全方式link
打开配置文件 (/home/gao/.SpaceVim.d/init.toml)
space(空格键) + f + v + d
加入:
[[layers]]
name = "autocomplete"
[options]
autocomplete_method = "ycm"
退出重进spacevim,失败,显示安装出错,找不到ycmd。
找到教程“使用spacevim安装youcompleteme”,编译youcompleteme。link
重新打开init.toml,加入:
[[custom_plugins]]
name="Valloric/YouCompleteMe"
merge=0
重启spacevim,打开home/gao/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/doc/youcompleteme.txt。搜索ubuntu安装教程,安装,失败,出现nodejs:conflicts:npm。重新安装npm失败。解决方法:
sudo apt-get install aptitude
sudo aptitude install npm
只安装c++相关模块
python3 install.py --clangd-completer
失败,提示要先运行:·
git submodule update --init --recursive
clangd因网速太慢,下载失败,手动安装link:
根据失败时terminal提供的下载链接下载clangd安装包,将其移动至home/gao/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/third_party/ycmd/third_party/clangd/cache文件夹下,重新运行install.py,编译成功。
.SpaceVim.d文件夹下并没有autoload,重新创建的也不知道有用没,反正没报错。
有找了一个官方教程,这个好简单的样子link
" Step 1: Add `let g:spacevim_enable_ycm = 1` to custom_config. By default
" it should be `~/.SpaceVim.d/init.vim`.
"
" Step 2: Get into the directory of YouCompleteMe's author. By default it
" should be `~/.cache/vimfiles/repos/github.com/Valloric/`. If you find the
" directory `YouCompleteMe` in it, go into it. Otherwise clone
" YouCompleteMe repo by
" `git clone https://github.com/Valloric/YouCompleteMe.git`. After cloning,
" get into it and run `git submodule update --init --recursive`.
"
" Step 3: Compile YouCompleteMe with the features you want. If you just want
" C family support, run `./install.py --clang-completer`.
2 spacevim 花括号换行自动缩进
来源:link
更改init.toml
auto-completion-return-key-behavior = "smart"
3 用不了的cmake-gui
重新编译opencv的时候参考了博客link
下载了cmake-qt-gui,双击build目录下的CMakeCache.txt可以直接用gui的形式打开文件,可以查看各项配置的名字,更改默认配置的value,但是无法generate,好像是权限的问题,暂时不知道如何解决。但是这个东西可以用来查看可选配置的名字。