Home

Awesome

vimplus-logo

An automatic configuration program for vim

<p align="center"> <a href="#build" alt="build"><img src="https://img.shields.io/badge/build-passing-brightgreen.svg" /></a> <a href="#安装" alt="platform"><img src="https://img.shields.io/badge/platform-MacOSX%20%7C%20Linux%2064bit%20%7C%20Docker%20%7C%20WSL%20%7C%20Android-brightgreen.svg" /></a> <a href="https://github.com/chxuan/vimplus/stargazers" alt="stars"><img src="https://img.shields.io/github/stars/chxuan/vimplus.svg?style=popout&label=stars" /></a> <a href="https://github.com/chxuan/vimplus/forks" alt="forks"><img src="https://img.shields.io/github/forks/chxuan/vimplus.svg?style=popout&label=forks" /></a> <a href="https://github.com/chxuan/vimplus/graphs/contributors" alt="contributors"><img src="https://img.shields.io/github/contributors/chxuan/vimplus" /></a> <a href="https://github.com/chxuan/vimplus/blob/master/LICENSE" alt="lincense"><img src="https://img.shields.io/badge/license-MIT-blue.svg" /></a> </p>

main

安装

Mac OS X

安装HomeBrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装vimplus

git clone https://github.com/chxuan/vimplus.git ~/.vimplus
cd ~/.vimplus
./install.sh

注: apline用户请预先安装git,bash: apk add git bash

设置Nerd Font

为防止vimplus显示乱码,需设置mac终端字体为Droid Sans Mono Nerd Font

更新vimplus

紧跟vimplus的步伐,尝鲜新特性

./update.sh

Linux 64-bit

支持以下发行版

<table> <tr> <td><a href="https://distrowatch.com/table.php?distribution=ubuntu"><img src="https://distrowatch.com/images/yvzhuwbpy/ubuntu.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=ubuntukylin"><img src="https://distrowatch.com/images/yvzhuwbpy/ubuntukylin.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=debian"><img src="https://distrowatch.com/images/yvzhuwbpy/debian.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=kali"><img src="https://distrowatch.com/images/yvzhuwbpy/kali.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=deepin"><img src="https://distrowatch.com/images/yvzhuwbpy/deepin.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=mint"><img src="https://distrowatch.com/images/yvzhuwbpy/mint.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=elementary"><img src="https://distrowatch.com/images/yvzhuwbpy/elementary.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=centos"><img src="https://distrowatch.com/images/yvzhuwbpy/centos.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=fedora"><img src="https://distrowatch.com/images/yvzhuwbpy/fedora.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=arch"><img src="https://distrowatch.com/images/yvzhuwbpy/arch.png"/></a><p align="center"></p></td> </tr> <tr> <td><a href="https://distrowatch.com/table.php?distribution=manjaro"><img src="https://distrowatch.com/images/yvzhuwbpy/manjaro.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=opensuse"><img src="https://distrowatch.com/images/yvzhuwbpy/opensuse.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=gentoo"><img src="https://distrowatch.com/images/yvzhuwbpy/gentoo.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=parrot"><img src="https://distrowatch.com/images/yvzhuwbpy/parrot.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=raspios"><img src="https://distrowatch.com/images/yvzhuwbpy/raspios.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=freebsd"><img src="https://distrowatch.com/images/yvzhuwbpy/freebsd.png"/></a><p align="center"></p></td> <td><a href="https://distrowatch.com/table.php?distribution=alpine"><img src="https://distrowatch.com/images/yvzhuwbpy/alpine.png"/></a><p align="center"></p></td> </tr> </table>

安装vimplus

git clone https://github.com/chxuan/vimplus.git ~/.vimplus
cd ~/.vimplus
./install.sh //不加sudo

设置Nerd Font

为防止vimplus显示乱码,需设置linux终端字体为Droid Sans Mono Nerd Font

多用户支持

将vimplus在某个用户下安装好后,若需要在其他用户也能够使用vimplus,则执行

sudo ./install_to_user.sh username1 username2 //替换为真实用户名

更新vimplus

紧跟vimplus的步伐,尝鲜新特性

./update.sh

Android 64-bit(Termux)

安装vimplus

git clone https://github.com/chxuan/vimplus.git ~/.vimplus
cd ~/.vimplus
./install.sh

更新vimplus

紧跟vimplus的步伐,尝鲜新特性

./update.sh

Docker

ubuntu-vimplus是vimplus基于ubuntu18.04的docker镜像,无需安装vimplus,即可快速体验vimplus带来的快乐

docker run -it chxuan/ubuntu-vimplus

自定义

插件列表

插件说明
cpp-mode提供生成函数实现、函数声明/实现跳转、.h .cpp切换等功能(I'm author:smile:)
vim-edit方便的文本编辑插件(I'm author:smile:)
change-colorscheme随心所欲切换主题(I'm author:smile:)
prepare-code新建文件时,生成预定义代码片段(I'm author:smile:)
vim-buffervim缓存操作(I'm author:smile:)
vimplus-startifyvimplus开始页面(修改自mhinz/vim-startify)
tagbar使用preservim/tagbar的最新版本,taglist的替代品,显示类/方法/变量
vim-plugVundle下载更快的插件管理软件
YouCompleteMe史上最强大的基于语义的自动补全插件,支持C/C++、C#、Python、PHP等语言
NerdTree代码资源管理器
vim-nerdtree-syntax-highlightNerdTree文件类型高亮
nerdtree-git-pluginNerdTree显示git状态
vim-devicons显示文件类型图标
Airline可以取代powerline的状态栏美化插件
auto-pairs自动补全引号、圆括号、花括号等
LeaderFctrlp更强大的文件的模糊搜索工具
ack强大的文本搜索工具
vim-surround自动增加、替换配对符的插件
vim-commentary快速注释代码插件
vim-repeat重复上一次操作
vim-endwiseif/end/endif/endfunction补全
tabular代码、注释、表格对齐
vim-easymotion强大的光标快速移动工具,强大到颠覆你的插件观
incsearch.vim模糊字符搜索插件
vim-fugitive集成Git
gv显示git提交记录
vim-slash优化搜索,移动光标后清除高亮
echodoc补全函数时在命令栏显示函数签名
vim-smooth-scroll让翻页更顺畅
clever-f.vim强化f和F键

快捷键

以下是部分快捷键,可通过vimplus的,h命令查看vimplus帮助文档

快捷键说明
,Leader Key
<leader>n打开/关闭代码资源管理器
<leader>t打开/关闭函数列表
<leader>a.h .cpp 文件切换
<leader>u转到函数声明
<leader>U转到函数实现
<leader>u转到变量声明
<leader>o打开include文件
<leader>y拷贝函数声明
<leader>p生成函数实现
<leader>w单词跳转
<leader>f搜索~目录下的文件
<leader>F搜索当前目录下的文本
<leader>g显示git仓库提交记录
<leader>G显示当前文件提交记录
<leader>gg显示当前文件在某个commit下的完整内容
<leader>ff语法错误自动修复(FixIt)
<c-p>切换到上一个buffer
<c-n>切换到下一个buffer
<leader>d删除当前buffer
<leader>D删除当前buffer外的所有buffer
vim运行vim编辑器时,默认启动开始页面
<F5>显示语法错误提示窗口
<F9>显示上一主题
<F10>显示下一主题
<leader>l按竖线对齐
<leader>=按等号对齐
Ya复制行文本到字母a
Da剪切行文本到字母a
Ca改写行文本到字母a
rr替换文本
<leader>r全局替换,目前只支持单个文件
rev翻转当前光标下的单词或使用V模式选择的文本
gcc注释代码
gcap注释段落
vif选中函数内容
dif删除函数内容
cif改写函数内容
vaf选中函数内容(包括函数名 花括号)
daf删除函数内容(包括函数名 花括号)
caf改写函数内容(包括函数名 花括号)
fa查找字母a,然后再按f键查找下一个
<leader>e快速编辑~/.vimrc文件
<leader>s重新加载~/.vimrc文件
<leader>vp快速编辑~/.vimrc.custom.plugins文件
<leader>vc快速编辑~/.vimrc.custom.config文件
<leader>h打开vimplus帮助文档
<leader>H打开当前光标所在单词的vim帮助文档
<leader><leader>t生成try-catch代码块
<leader><leader>y复制当前选中到系统剪切板
<leader><leader>i安装插件
<leader><leader>u更新插件
<leader><leader>c删除插件

FAQ

贡献者

有代码贡献或有好的建议,帮助vimplus发展的小伙伴

<a href="https://github.com/chxuan" target="_blank" title="chxuan"> <img src="https://github.com/chxuan.png?size=64" width="64" height="64" alt="chxuan"> </a> <a href="https://github.com/dofy" target="_blank" title="dofy"> <img src="https://github.com/dofy.png?size=64" width="64" height="64" alt="dofy"> </a> <a href="https://github.com/urain39" target="_blank" title="urain39"> <img src="https://github.com/urain39.png?size=64" width="64" height="64" alt="urain39"> </a> <a href="https://github.com/freedomDR" target="_blank" title="freedomDR"> <img src="https://github.com/freedomDR.png?size=64" width="64" height="64" alt="freedomDR"> </a> <a href="https://github.com/starifly" target="_blank" title="starifly"> <img src="https://github.com/starifly.png?size=64" width="64" height="64" alt="starifly"> </a> <a href="https://github.com/Shaloc" target="_blank" title="Shaloc"> <img src="https://github.com/Shaloc.png?size=64" width="64" height="64" alt="Shaloc"> </a> <a href="https://github.com/jokerkeny" target="_blank" title="jokerkeny"> <img src="https://github.com/jokerkeny.png?size=64" width="64" height="64" alt="jokerkeny"> </a> <a href="https://github.com/xuthus5" target="_blank" title="xuthus5"> <img src="https://github.com/xuthus5.png?size=64" width="64" height="64" alt="xuthus5"> </a> <a href="https://github.com/zhoumengkang" target="_blank" title="zhoumengkang"> <img src="https://github.com/zhoumengkang.png?size=64" width="64" height="64" alt="zhoumengkang"> </a> <a href="https://github.com/tuberry" target="_blank" title="tuberry"> <img src="https://github.com/tuberry.png?size=64" width="64" height="64" alt="tuberry"> </a> <a href="https://github.com/wyg1997" target="_blank" title="wyg1997"> <img src="https://github.com/wyg1997.png?size=64" width="64" height="64" alt="wyg1997"> </a> <a href="https://github.com/happinesslijian" target="_blank" title="happinesslijian"> <img src="https://github.com/happinesslijian.png?size=64" width="64" height="64" alt="happinesslijian"> </a> <a href="https://github.com/wangling12" target="_blank" title="wangling12"> <img src="https://github.com/wangling12.png?size=64" width="64" height="64" alt="wangling12"> </a> <a href="https://github.com/ardinzh" target="_blank" title="ardinzh"> <img src="https://github.com/ardinzh.png?size=64" width="64" height="64" alt="ardinzh"> </a> <a href="https://github.com/BD7IWD" target="_blank" title="BD7IWD"> <img src="https://github.com/BD7IWD.png?size=64" width="64" height="64" alt="BD7IWD"> </a> <a href="https://github.com/Ro0tk1t" target="_blank" title="Ro0tk1t"> <img src="https://github.com/Ro0tk1t.png?size=64" width="64" height="64" alt="Ro0tk1t"> </a>

支持开源:heart:

有意愿献爱心的小伙伴,务必将github账号写入捐款备注哦,谢谢大家

wechatalipay
<a href='#支持开源'><img src="https://github.com/chxuan/vimplus/blob/master/screenshots/wechat.png" height="150" width="150" /></a><a href='#支持开源'><img src="https://github.com/chxuan/vimplus/blob/master/screenshots/alipay.png" height="150" width="150" /></a>
序号支持者RMB时间
1zhoumengkang¥502019-09-28
2zhoumengkang¥502019-09-29
3zibraque¥502019-11-25
4gfreewind¥202019-12-27
5wh656325437¥202020-07-02
6luguifang¥202020-07-12
7liyewen521¥202020-07-27
8xht19980305¥202020-08-14

vimplus:star:趋势图

Stargazers over time

License

This software is licensed under the MIT license. © 2016 chxuan