Ⅰ. 插件描述
Clojure Interactive Development Environment for Vim8/NeovimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'liquidz/vim-iced'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'liquidz/vim-iced'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'liquidz/vim-iced'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/liquidz/vim-iced
Ⅳ. 文档说明
= vim-iced
+++
<h4 align="center">
Clojure Interactive Development Environment for Vim8/Neovim.
</h4>
<p align="center">
<img src="https://img.shields.io/github/release/liquidz/vim-iced.svg?logo=Clojure&logoColor=white" alt="GitHub release" /><img src="https://img.shields.io/github/license/liquidz/vim-iced.svg?logo=Github" alt="GitHub license" /><img src="https://img.shields.io/badge/powered%20by-vital.vim-80273f.svg?logo=Vim" alt="Powered by vital.vim" /><img src="https://github.com/liquidz/vim-iced/workflows/vim%2Fneovim/badge.svg" alt="GitHub Actions for vim/neovim workflow" /><img src="https://codecov.io/gh/liquidz/vim-iced/branch/master/graph/badge.svg" alt="Codecov" />
</p>
+++
== Requirements
- Vim 8.1.0614 or later, Neovim 0.4.0 or later.
- Clojure 1.8 or later.
** 1.10 or later is recommended. - No python! (boost possible with
if_python3)
== Features
[cols="2*,a"]
|===
|:zap:
|Asynchronous evaluation
|powered by channel in Vim8 / Neovim
|:fire:
|Testing
|[%hardbreaks]
Run test under cursor
Run tests in namespace
Re run failed/last test
Also supports https://github.com/lambdaisland/kaocha[kaocha] by https://github.com/liquidz/vim-iced-kaocha[vim-iced-kaocha]
|:rocket:
|Refactoring
|[%hardbreaks]
Clean namespace
Add missing
Thread first/last
Extract function
Move to let
|:thought_balloon:
|Auto completion
|[%hardbreaks]
Provided by following external plugins.
- https://github.com/liquidz/vim-iced-coc-source[vim-iced-coc-source] for https://github.com/neoclide/coc.nvim[coc.nvim]
- https://github.com/liquidz/vim-iced-asyncomplete[vim-iced-asyncomplete] for https://github.com/prabirshrestha/asyncomplete.vim[asyncomplete.vim]
Omni completion is provided by default.
|:mag:
|Reference
|[%hardbreaks]
Docs, Javadoc, and https://clojuredocs.org[ClojureDocs] https://twitter.com/uochan/status/1154792252167741440[:movie_camera:]
Function dependencies and references https://twitter.com/uochan/status/1139540878853206017[:movie_camera:]
|:ant:
|Debugging
|[%hardbreaks]
Supports cider-nrepl's debugger https://twitter.com/uochan/status/1034404572368842752[:movie_camera:]
Browsing tapped values https://twitter.com/uochan/status/1146982101662572544[:movie_camera:]
|:notebook:
|Skeleton
|Provides code skeleton when you open new file
|:tophat:
|ClojureScript support
|[%hardbreaks]
Supports followings currently.
- https://github.com/bhauman/figwheel-main[Figwheel Main], https://github.com/bhauman/lein-figwheel[lein-figwheel]
- https://github.com/thheller/shadow-cljs[shadow-cljs]
- https://github.com/graalvm/graaljs[GraalJS]
- Nashorn
|:electric_plug:
|Socket REPL
|Supports minimal operations.
|:art:
|Command palette
|Access commands smoothly and define user custom commands
|===
NOTE: vim-iced is heavily powered by https://github.com/clojure-emacs/cider-nrepl[cider-nrepl],
https://github.com/clojure-emacs/refactor-nrepl[refactor-nrepl],
and https://github.com/liquidz/iced-nrepl[iced-nrepl].
== Documents
- https://liquidz.github.io/vim-iced/#installation[Installation]
- https://liquidz.github.io/vim-iced/#quick_start[Quick start]
** https://liquidz.github.io/vim-iced/#cheatsheet[Cheatsheet] - https://liquidz.github.io/vim-iced/vim-iced.html[vim-iced.txt (Vim help file)]
== External plugins
[cols="2*,a"]
|===
|:fire:
|https://github.com/liquidz/vim-iced-kaocha[vim-iced-kaocha]
|Provides some commands for testing with https://github.com/lambdaisland/kaocha[kaocha].
.2+|:mag:
| https://github.com/liquidz/vim-iced-project-namespaces[vim-iced-project-namespaces]
| Provides :IcedBrowseNamespace command for jumping to namespace in your project.
| https://github.com/liquidz/vim-iced-function-list[vim-iced-function-list]
| Provides :IcedBrowseFunction command for jumping to functions in current namespace.
.3+|:thought_balloon:
| https://github.com/liquidz/vim-iced-coc-source[vim-iced-coc-source]
| Provides auto completion by https://github.com/neoclide/coc.nvim[coc.nvim].
| https://github.com/liquidz/vim-iced-asyncomplete[vim-iced-asyncomplete]
| Provides auto completion by https://github.com/prabirshrestha/asyncomplete.vim[asyncomplete.vim].
| https://github.com/nbardiuk/vim-iced-ncm2[vim-iced-ncm2]
| Provides auto completion by https://github.com/ncm2/ncm2[ncm2].
|===
== License
Copyright (c) 2018-2020 http://twitter.com/uochan[Masashi Iizuka]
Distributed under the MIT License.