vim配置笔记

最近重新配置了一遍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

配置见

https://mounui.com/343.html

17. 经测试coc.nvim/deoplete/leaderF都会拖慢运行速度

目前先禁用以上插件,安装fzf替代leaderF,安装方法:

在vim中使用fzf搜索 | 木凡博客 (mounui.com)

fzf.exe

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值