/kvim

vim configuration

Primary LanguageVim Script

kvim

vim configuration

安装vim

gvim_8.1.2300_x64.exe 长期使用稳定版本,最新版本也可

https://github.com/vim/vim-win32-installer/releases

参考readme,以确定需要的python和lua版本

https://github.com/vim/vim-win32-installer/blob/master/README.md

exe安装

lua53 加入环境变量

http://luabinaries.sourceforge.net/download.html

lua53解压后没几个文件,直接拷进Vim目录即可

安装python 最新vim8.2对应python3.9

https://www.python.org/downloads/

exe安装,以下目录加入环境变量

C:\Python27\

C:\Python27\Scripts

要根据vim版本里的README描述安装匹配的版本

安装pygments 用于语法分析

命令行执行 pip install pygments

实验证明gtags解析lua依然依赖ctags

安装rg 搜索插件

ripgrep-12.1.1-x86_64-pc-windows-msvc

https://github.com/BurntSushi/ripgrep/releases

rg.exe拷贝到Vim目录下

ag 搜索插件 中文支持不太好,已用rg替代

https://github.com/JFLarvoire/the_silver_searcher/releases

ag.exe拷贝到Vim目录下

ctags gtags解析lua有依赖

ctags-2021-10-25_p5.9.20211024.0-2-g6f544dfc-x64.zip

https://github.com/universal-ctags/ctags-win32/releases

ctags.exe拷贝到vim目录下

安装gtags 查定义查引用

glo665wb.zip

https://www.gnu.org/software/global/ => http://adoxa.altervista.org/global/

解压到C目录,加入环境变量,也可拷贝到Vim目录下

gtags\share\gtags\gtags.conf common增加 home/,implib/,tools/,test/,bin/, 排除目录后,可在server目录建立tags

安装vundle 插件管理器

https://github.com/VundleVim/Vundle.vim

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

~为用户目录,windows上需要替换成完整用户目录

替换_vimrc后,打开vim,输入 :PluginInstall 安装插件