Ⅰ. 插件描述
The Typed Clojure plugin for Vim + vim-fireplaceⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'typedclojure/vim-typedclojure'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'typedclojure/vim-typedclojure'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'typedclojure/vim-typedclojure'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/typedclojure/vim-typedclojure
Ⅳ. 文档说明
# typedclojure.vim
The official Typed Clojure vim plugin.
Installation
typedclojure.vim requires fireplace.vim.
If you're using pathogen.vim, install typedclojure.vim
with these commands:
cd ~/.vim/bundle
git clone git://github.com/typedclojure/vim-typedclojure.gitIf you're using Vundle.vim, install typedclojure.vim
by adding this line to your vimrc, and then run Bundle.
Bundle 'typedclojure/vim-typedclojure'After generating the helptags, view the manual with :help typedclojure.
Features
See :help typedclojure for this information.
Type checking namespaces
To type check the current namespace, call :CheckNs or input ctn
(think 'core.typed check namespace').
Any type errors are loaded into a quickfix list, which can be navigated like fireplace's
quickfix window for stack traces.

Hovering over an entry in the quickfix window and inputting ce will open a preview window
with a nicely formatted copy of the type error message on the current line.
Local type information
After type checking a file, use :TypeAt or cK to query the type at a
position in the type checked file. In GUI mode, mouse hovering has the same effect,
but with balloon popups.

Aim your mouse/cursor at the leftmost character in a form.
License
Copyright (c) Ambrose Bonnaire-Sergeant. Distributed under the same terms as Vim itself.
See :help license.
