VIM

vim

The Ultimate vimrc  ,  https://github.com/amix/vimrc

git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh

Zachary551 vim1  https://blog.csdn.net/zghforever/category_10242625.html
wxgnolux vim2  https://blog.csdn.net/fangkailove/category_10046988.html
win+msys64  https://blog.csdn.net/qz757/category_6542417.html

msys2  https://www.msys2.org/
安装gcc make

pacman -S --needed base-devel mingw-w64-x86_64-toolchain

vim命令行打印python系统信息: python3 print(sys.version);

 

anaconda+vim+YCM打造服务器端深度学习利器
https://blog.csdn.net/weixin_40731240/article/details/104140113
Vim与Python真乃天作之合:打造强大的Python开发环境
https://www.cnblogs.com/awakenedy/articles/9109506.html

VIM and Python – A Match Made in Heaven
https://realpython.com/vim-and-python-a-match-made-in-heaven/

====
VIM安装和Anaconda   http://ddrv.cn/a/368458
无权看全文,百度
VIM安装和Anaconda

下载源代码,重新配置和编译vim:
在Windows上,您需要启用动态加载python解释器.如果在路径中找到python,它将在vim中可用.
这使您免于担心安装python的位置.例如:

./configure --with-features=huge --enable-pythoninterp=dynamic --enable-python3interp=dynamic

在基于Debian的系统上,要构建两个版本的python,您需要使用以下内容:

./configure --enable-pythoninterp=dynamic --with-python-config-dir=$(shell python-config --configdir) -enable-python3interp=dynamic --with-python3-config-dir=$(shell python3-config --configdir)  

-What's the easiest way to get Vim with Python 3 support?
https://askubuntu.com/questions/585237/whats-the-easiest-way-to-get-vim-with-python-3-support

================================================

关于YouCompleteMe在Windows,anaconda下的安装和使用:

下载: 
使用Git for Windows下载到~/.vim/<自定义plugin目录>
使用 --recursive,否则子模块下载不完整

git clone  --recursive  https://github.com/ycm-core/YouCompleteMe

编译参考:  https://blog.csdn.net/blongz/article/details/105147034
编译命令:
切换到YouCompleteMe目录:
python install.py --clangd-completer --java-completer
默认支持python.
除了下载clang 31MB, jdt 51MB, 编译时间约1-2分钟

修改~/.vimrc, 具体路径根据你的情况修改。

官方选项解释:https://github.com/ycm-core/YouCompleteMe#options


set runtimepath+=~/.vim_runtime/my_plugins/YouCompleteMe
let g:ycm_global_ycm_extra_conf = '~/.vim_runtime/my_plugins/YouCompleteMe/ycm_extra_conf.py'
let g:ycm_server_python_interpreter = 'C:/ProgramData/anaconda3/envs/tf2x/python.exe'

let g:ycm_python_interpreter_path   = 'C:/ProgramData/anaconda3/envs/tf2x/python.exe'     
let g:ycm_python_binary_path        = 'C:/ProgramData/anaconda3/envs/tf2x/python.exe'    


-

Ref:
https://gnolux.blog.csdn.net/article/details/106365539
https://blog.csdn.net/weixin_40731240/article/details/104140113c
https://blog.csdn.net/u011306659/article/details/108768115

 

=====================================

编译和运行:在VIM中添加一键编译和一键运行
http://blog.chinaunix.net/uid-21202106-id-2406761.html

 

 

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值