vim-groovy


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2016-03-04
使用用户:  1
Github星:  1
插件作者:  Brian Stewart

Ⅲ. 安装方法

使用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

  1. The Vim plugin could call out to an externally running Groovy process
  2. 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:

junegunn/vimawesome.vim

Acknowledgements

The indent/groovy.vim code was largely taken from vim.org script #5257
and vim-scripts/groovyindent-unix.

添加新评论