Ⅰ. 插件描述
Vim built-in Racket Omnicompletion and DocumentationⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'micahelliott/vrod'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'micahelliott/vrod'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'micahelliott/vrod'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/micahelliott/vrod
Ⅳ. 文档说明
# VROD: Vim built-in Racket Omni-completion and Documentation

Why browse HTML pages when you can view docs right in Vim with K?
This plugin programmatically turns Racket reference docs into Vim help. That’s
kinda’ weird, but works out well. Racket doesn’t have help built into its repl
or source code, so the niceties of Clojure inline docs are not very possible
without things like this plugin.
Use K while on any Racket function to access its reference help
documentation through Vim’s help system.
BONUS: Use CtrlXO to omni-complete any
standard Racket function. Actually, just use
CtrlN/CtrlP, since it’s not yet
smart enough to bother with true Omnicompletion.
There is also an extended syntax file for carefully highlighting all the
programmatically discovered functions, yet carefully excluding Racket
- This is helpful because
vim-racket misses quite a few
functions.
How It’s Made
The full set of Racket’s Reference scribble docs has been converted to text,
and parsed/munged a bit to add *foo* markers that Vim’s :helptags uses.
Then those markers were collected into a list that Vim uses for
omnicompletion and syntax recognition.
Installation
If you use Vundle/Pathogen, note that the doc generation phase is not like
other Vim plugins. The tags file is already part of this plugin (it’s a pain
to build), so you don’t want Vundle/Pathogen trying to build it. But don’t
worry about this; it should be transparent.
Shortcomings
- Cannot completing functions from all packages
- Not smart omnicompletion yet; using dictionary instead for now