https://github.com/thecodesmith/vim-groovy
https://github.com/thecodesmith/vim-groovy
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thecodesmith/vim-groovy
- Owner: thecodesmith
- Created: 2016-03-04T01:50:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T17:28:11.000Z (about 2 years ago)
- Last Synced: 2025-04-12T11:41:40.966Z (about 1 year ago)
- Language: Vim script
- Size: 18.6 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-groovy
This plugin is a collection of useful features for working in the
[Groovy](http://www.groovy-lang.org) 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](github.com/vim-scripts/groovy.vim))
* Proper indentation (adapt from [groovyindent-unix](github.com/vim-scripts/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
in. The Vim plugin could call out to an externally running Groovy process
listening 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](https://gist.github.com/junegunn/5dff641d68d20ba309ce)
## Acknowledgements
The [indent/groovy.vim](indent/groovy.vim) code was largely taken from vim.org script #5257
and [vim-scripts/groovyindent-unix](https://github.com/vim-scripts/groovyindent-unix).