43
2017年必装的VIM插件推荐
source link: https://jiajunhuang.com/articles/2017_09_03-2017_vim_plugins.md.html?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
其实,我是用 neovim 的 :)
-
vim-plug
- 项目地址: https://github.com/junegunn/vim-plug
- 推荐理由:并发操作,试过你就不会放过
-
fzf & fzf.vim
- 项目地址: https://github.com/junegunn/fzf.vim
- 推荐理由:速度比CtrlP快很多倍,配上
BLines
之后还可以模糊搜索正在编辑的代码,而且还可以把fzf在bash里代替Ctrl-R
- 配置地址: 点我
-
YouCompleteMe
- 项目地址:https://github.com/Valloric/YouCompleteMe - 推荐理由:这应该是Vim里最好用的补全插件了,没有之一。通过各种插件配置,可以补全n种语言,基本覆盖了常见的语言,虽然速度相比有点慢,但是YCM带来的好处比速度多得多
-
vim-eunuch
- 项目地址: https://github.com/tpope/vim-eunuch
- lightline.vim
- 项目地址:https://github.com/itchyny/lightline.vim
-
vim-python-pep8-indent
- 项目地址: https://github.com/Vimjas/vim-python-pep8-indent
- 推荐理由:再也不用手动缩进了,以及,Vim自带的缩进很那啥
-
agit.vim
- 项目地址:https://github.com/cohama/agit.vim - 推荐理由:编辑一个被Git跟踪过的文件,然后 `:Agit` 之后jk就可以看提交历史
-
vim-repeat
- 项目地址: https://github.com/tpope/vim-repeat
- 推荐理由:按点号就支持重复上一个动作,很方便,并且有诸多第三方插件都支持
-
vim-rsi
- 项目地址: https://github.com/tpope/vim-rsi
- 推荐理由:可以在命令模式下用Emacs快捷键,emm。。。Vim和Emacs的优点我都要!
-
ale
- 项目地址: https://github.com/w0rp/ale
- 推荐理由:异步检查代码,还有一个老牌的检查工具: https://github.com/vim-syntastic/syntastic 不过目前还不支持异步
-
vim-fugitive
- 项目地址: https://github.com/tpope/vim-fugitive
- 推荐理由:把Git集成在Vim里,不过个人用的并不多,主要是用来执行
git blame
的 :joy:
-
rainbow
- 项目地址: https://github.com/luochen1990/rainbow
- 推荐理由:彩虹括号,有了这个还怕Lisp吗?不知道,反正有了这个,写代码很方便分清楚哪几个括号是配对的
-
ack.vim
- 项目地址: https://github.com/mileszs/ack.vim
- 推荐理由:用过ack,你就会到哪里都用(而不是grep)
-
vim-sneak
- 项目地址: https://github.com/justinmk/vim-sneak
- 推荐理由:快速跳转,以前我用 https://github.com/easymotion/vim-easymotion 来着,后来换了这个就没换回去了。个人没感觉有太大差别。
-
vim-sensible
- 项目地址: https://github.com/tpope/vim-sensible
- 推荐理由:sensible.vim: Defaults everyone can agree on.
-
auto-pairs
- 项目地址: https://github.com/jiangmiao/auto-pairs
- 推荐理由:有了这个插件我就不用手动写两个括号了,而是左半边括号就行啦!
-
vim-better-whitespace
- 项目地址: https://github.com/ntpeters/vim-better-whitespace
- 推荐理由:如果行尾有多余的空格,会高亮显示出来,此时,执行
:StripWhitespace
就可以自动消除
-
nerdcommenter
- 项目地址: https://github.com/scrooloose/nerdcommenter
- 推荐理由:支持很多种语言,自己配好快捷键,就可以快速的注释和反注释,这让我想起了
Eclipse
里的Ctrl-/
-
undotree
- 项目地址: https://github.com/mbbill/undotree
- 推荐理由:多少次关闭Vim之后想要把代码撤回去。。。不要跟我说用每次都用git保存,不可能每一个微小的改动都用git保存的。而且这个插件还有可视化历史!
-
eregex.vim
- 项目地址: https://github.com/othree/eregex.vim
- 推荐理由:替换Vim自身的正则表达式,以后就不用带上一堆的
\
来进行转义了
-
vim-surround
- 项目地址: https://github.com/tpope/vim-surround
- 推荐理由:要更改成对的括号,引号怎么办?用这个改一个等于改一对!
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK