Ⅰ. 插件描述
Sort-of functional attempt at porting vim-leiningen to boot. Extreme WIPⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'rkneufeld/vim-boot'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'rkneufeld/vim-boot'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'rkneufeld/vim-boot'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/rkneufeld/vim-boot
Ⅳ. 文档说明
# boot.vim
Static Vim support for [Boot][].
:Consolecommand to start a REPL or focus an existing instance if already
running using [dispatch.vim][].- Autoconnect [fireplace.vim][] to the REPL, or autostart it with
:Console. and
:Eresource.- Alternate between test and implementation with
:A. - Use
:maketo invokelein, complete with stacktrace parsing. - Default [dispatch.vim][]'s
:Dispatchto running the associated test file. 'path'is seeded with the classpath to enable certain static Vim and
[fireplace.vim][] behaviors.
Installation
If you don't have a preferred installation method, I recommend
NeoBundle.
" In your .vimrc
NeoBundle 'rkneufeld/vim-boot'Others prefer pathogen.vim. To
install, simply copy and paste:
cd ~/.vim/bundle
git clone git://github.com/rkneufeld/vim-boot.git
git clone git://github.com/tpope/vim-projectionist.git
git clone git://github.com/tpope/vim-dispatch.git
git clone git://github.com/tpope/vim-fireplace.git
Once help tags have been generated, you can view the manual with:help boot.
FAQ
Why does it sometimes take a few extra seconds for Vim to startup?
Much of the functionality of leiningen.vim depends on knowing the classpath.
When possible, this is retrieved from a [fireplace.vim][] connection, but if
not, this means a call to boot classpath.
You should add the following task to your build.boot:
;; ...Once retrieved, the classpath is cached until boot.build changes.
License
Copyright © Ryan Neufeld. Distributed under the same terms as Vim itself.
See :help license.
Special thanks to @tpope for creating the original
vim-leiningen, upon which this plugin
is based.