Ⅰ. 插件描述
A Vim plugin for Clojure's Eastwood linterⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'venantius/vim-eastwood'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'venantius/vim-eastwood'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'venantius/vim-eastwood'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/venantius/vim-eastwood
Ⅳ. 文档说明
# vim-eastwood
vim-eastwood is a vim plugin for Eastwood, the Clojure lint tool. Rather than shelling out to Leiningen, it uses a vim-fireplace REPL connection to only lint the current file. This has the advantage of sidestepping Leiningen's startup time and keeping Vim from hanging, though the very first time you use it with a given REPL server there will be a slight delay as it loads the eastwood.lint namespace.
You should be aware of the side effects of using Eastwood from a REPL.
It extends Syntastic's checkers, so you'll see those familiar markers in your UI:

Installation
Requirements
You'll want to have Eastwood, vim-fireplace and Syntastic installed, and you'll need to make sure Eastwood is somewhere on your project's classpath. I'd recommend adding the following to your ~/.lein/profiles.clj:
:dependencies [[jonase/eastwood "0.2.1" :exclusions [org.clojure/clojure]]]You'll also need to enable this plugin as the Clojure syntax checker for Syntastic by adding the following line to your ~/.vimrc:
let g:syntastic_clojure_checkers = ['eastwood']In order for Syntastic to actually lint the file you're working on, you'll also need to have a REPL connection open through fireplace.
After that, the rest should take care of itself.
Installing with Pathogen
Assuming you already have Pathogen installed, you should be good to go with the following:
cd ~/.vim/bundle && \
git clone https://github.com/venantius/vim-eastwood.gitInstalling with Vundle
To install vim-eastwood with Vundle, add the following line to your .vimrc:
Bundle 'venantius/vim-eastwood'Other Vim + Clojure Plugins
If you like this, you should check out vim-cljfmt!
License
Copyright (c) 2019 W. David Jarvis.
Licensed under the Eclipse Public License, the same as Clojure.