Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'thecodesmith/vim-groovy-own-character'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'thecodesmith/vim-groovy-own-character'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'thecodesmith/vim-groovy-own-character'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/thecodesmith/vim-groovy
Ⅳ. 文档说明
# vim-groovy
This plugin is a collection of useful features for working in the
Groovy language.
_Note: This plugin is in the idea stages, and is a work in progress.
If you have ideas for things you'd like to see included, drop me a line
or create an issue here on GitHub._
Future Features
- Syntax highlighting (adapt from groovy.vim)
- Proper indentation (adapt from groovyindent-unix)
- Tab completion, which would incidentally be great for Java development also
Tab Completion Ideas
Perhaps the GroovyShell class could be leveraged with its tab-completion built
- The Vim plugin could call out to an externally running Groovy process
- on a socket, and get back a list of tab-complete candidates.
As an example of how this could work, this gist shows retrieving JSON
from an API and loading the results into a tab-complete box:
Acknowledgements
The indent/groovy.vim code was largely taken from vim.org script #5257
and vim-scripts/groovyindent-unix.