最近重新配置了一遍vim,踩了不少坑,以此记录。
0. 安装64位vim, 详见
https://blog.csdn.net/qq_40946834/article/details/80443926
https://blog.csdn.net/ningyanggege/article/details/87932568
1.安装vim-plug,详见
vim-plug的安装与使用 - ziwuxian - 博客园 (cnblogs.com)
2. windowsmanager
taglist/nerdtree 在plugin里的文件 分别添加g:**_title=1,配置详见:
https://www.cnblogs.com/ifys/archive/2010/10/24/1860610.html
3. ctags/lua53.dll/rg复制到已添加到系统变量PATH的随便哪个目录里
ctags/lua53都可以上sourceforge上下载,rg下载地址
https://github.com/BurntSushi/ripgrep/releases
ctags被插件taglist使用
lua53/rg被LeaderF使用
4. 如果装了python27 python37(都要装64位的), 将python27设为python.exe,python37设为python3.exe,pip2/pip3强制更新,详见
https://blog.csdn.net/oqqHun123/article/details/90342559
5. python23 分别装如下包:
scipy/numpy/sklearn/pandas/simplejson/pymongo/gensim/Keras/xgboost
包下载地址:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
6. jupyter 安装
pip install jupyter
python3 -m pip install ipykernel
python3 -m ipykernel install --user
jupyter notebook --ip=127.0.0.1 --port=8000
修改根目录
jupyter notebook --generate-config
修改c.NotebookApp.notebook_dir在~\.jupyter\jupyter_notebook_config.py中
ipynb转py
https://blog.csdn.net/szfhy/article/details/81671090
乱码
https://blog.csdn.net/farphone/article/details/85801266
7. deoplete安装配置,详见
https://github.com/Shougo/deoplete.nvim
8. 安装64位mingw w64,详见
https://www.cnblogs.com/findumars/p/8289454.html
9. 安装llvm/clang,详见
https://www.cnblogs.com/meteoric_cry/p/5063288.html
10. mingw w64,路径配置,详见
https://www.ituring.com.cn/article/273708
11. clang++可编译cpp文件
https://blog.csdn.net/qq_21841245/article/details/79850845
12. 安装nodejs,详见
https://blog.csdn.net/zhaoweigang1987110/article/details/86478885
13. coc.nvim安装配置,详见
https://github.com/neoclide/coc.nvim/tree/master
pip install python-language-server
CocInstall coc-java coc-json coc-r-lsp coc-sql coc-lua coc-omnisharp coc-vimtex coc-pyls
CocList extensions
14.支持c/cpp,详见
a) 配置configuration中的LSP
https://github.com/neoclide/coc.nvim/wiki/Language-servers
b) 在代码根目录,添加compile_flags.txt
-c-isystem "D:/mingw64/include"
-c-isystem "D:/mingw64/x86_64-w64-mingw32/include"
-cxx-isystem "D:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include"
-cxx-isystem "D:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++"
-cxx-isystem "D:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32"
-cxx-isystem "D:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward"
-cxx-isystem "D:/mingw64/include"
-cxx-isystem "D:/mingw64/x86_64-w64-mingw32/include"
c) 设置系统变量:C_INCLUDE_PATH/CPP_INCLUDE_PATH
@rem set run llvm+clang with mingw path env
@echo off
set MINGW_HOME=D:\mingw64
set MINGW_VERSION=8.1.0
set "PATH=%MINGW_HOME%\bin;%PATH%"
set "C_INCLUDE_PATH=%MINGW_HOME%\include;%MINGW_HOME%\x86_64-w64-mingw32\include"
set "CPLUS_INCLUDE_PATH=%C_INCLUDE_PATH%;%MINGW_HOME%\lib\gcc\x86_64-w64-mingw32\%MINGW_VERSION%\include;%MINGW_HOME%\lib\gcc\x86_64-w64-mingw32\%MING
W_VERSION%\include\c++;%MINGW_HOME%\lib\gcc\x86_64-w64-mingw32\%MINGW_VERSION%\include\c++\x86_64-w64-mingw32;%MINGW_HOME%\lib\gcc\x86_64-w64-mingw32\
%MINGW_VERSION%\include\c++\backward"
set LLVM_HOME=D:\llvm
set "PATH=%LLVM_HOME%\bin;%PATH%"
15. 支持python
安装jedi-vim, 详见:
https://github.com/davidhalter/jedi-vim
16. open-browser,详见
https://github.com/tyru/open-browser.vim
配置见
17. 经测试coc.nvim/deoplete/leaderF都会拖慢运行速度
目前先禁用以上插件,安装fzf替代leaderF,安装方法:
在vim中使用fzf搜索 | 木凡博客 (mounui.com)
fzf.exe