vim插件不完全效果整理
Posted IT族装备党
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vim插件不完全效果整理相关的知识,希望对你有一定的参考价值。
本文是对原文章工具集合的vim部分进行详细描述:
完整的配置源码:
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" Generate
Plugin 'myusuf3/numbers.vim'
Plugin 'jpalardy/spacehi.vim'
Plugin 'bkad/CamelCaseMotion'
"Plugin 'kien/rainbow_parentheses.vim'
"Plugin 'luochen1990/rainbow'
Plugin 'qianjigui/rainbow_brackets.vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'chrisbra/vim-diff-enhanced'
Plugin 'scrooloose/nerdtree'
"Plugin 'vimim/vimim'
"Plugin 'edsono/vim-matchit'
Plugin 'tmhedberg/matchit'
Plugin 'Townk/vim-autoclose'
"Auto Complete
"Plugin 'ervandew/supertab'
Plugin 'Valloric/YouCompleteMe'
Plugin 'SirVer/ultisnips'
Plugin 'qianjigui/gtags.vim'
"Support IDE on languages
Plugin 'vim-ruby/vim-ruby'
Plugin 'fatih/vim-go'
"Support filetype
Plugin 'tfnico/vim-gradle'
Plugin 'davidhalter/jedi-vim'
Plugin 'tmux-plugins/vim-tmux'
Plugin 'diefans/vim-da-yaml'
"File/buffer search
Plugin 'Shougo/unite.vim'
目前自己开发过程中,主要使用了如下插件:
CamelCaseMotion 驼峰法代码浏览增强工具,
Vundle.vim 插件管理器,
YouCompleteMe 代码自动补全工具,
gtags.vim 代码搜索与导航,
jedi-vim 增强supertab,
matchit 匹配跳转增强,
nerdtree 代码树,
numbers.vim 行号显示增强(相对目前焦点的上下行号),
rainbow_brackets.vim 小括号匹配增强,
spacehi.vim 前缀/后缀空格异常显示,
Plugin 'SirVer/ultisnips' 代码片断扩展,
Plugin 'Shougo/unite.vim' 文件快速浏览,
vim-autoclose 自动括号补全,
vim-da-yaml YAML增强,
vim-diff-enhanced diff增强,
vim-gitgutter git增强,
vim-go, Go编程语言增强
Compile your package with
:GoBuild
, install it with:GoInstall
or test it with:GoTest
. Run a single test with:GoTestFunc
).Quickly execute your current file(s) with
:GoRun
.Improved syntax highlighting and folding.
Debug programs with integrated
delve
support with:GoDebugStart
.Completion support via
gocode
.
gofmt
orgoimports
on save keeps the cursor position and undo history.Go to symbol/declaration with
:GoDef
.Look up documentation with
:GoDoc
or:GoDocBrowser
.Easily import packages via
:GoImport
, remove them via:GoDrop
.Precise type-safe renaming of identifiers with
:GoRename
.See which code is covered by tests with
:GoCoverage
.Add or remove tags on struct fields with
:GoAddTags
and:GoRemoveTags
.Call
gometalinter
with:GoMetaLinter
to invoke all possible linters (golint
,vet
,errcheck
,deadcode
, etc.) and put the result in the quickfix or location list.Lint your code with
:GoLint
, run your code through:GoVet
to catch static errors, or make sure errors are checked with:GoErrCheck
.Advanced source analysis tools utilizing
guru
, such as:GoImplements
,:GoCallees
, and:GoReferrers
.... and many more! Please see doc/vim-go.txt for more information.
vim-gradle: gradle groovy语法高亮
vim-ruby: Ruby语言编程增强体验
vim-tmux tmux conf语法高亮
看了目前的工具,回过头来反思下,一个插件可以在哪些方面增强vim呢?
可以从vim插件框架结构来整体俯视一下http://learnvimscriptthehardway.stevelosh.com/chapters/42.html
一个好的编译器需要哪些功能呢?
便于你工作的所有行为都有好的优化,对于程序员基本就是需要拥有一个IDE的强大功能。
另外我个人还偏向:全键盘可操作,高性能。
以上是关于vim插件不完全效果整理的主要内容,如果未能解决你的问题,请参考以下文章