65

GitHub - liquidz/vim-iced: Clojure Interactive Development Environment for Vim8

 5 years ago
source link: https://github.com/liquidz/vim-iced
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

vim-iced

CircleCI Powered by vital.vim

Clojure Interactive Development Environment for Vim8.

WARN: This project is work in progress.

Requirements

Features

  • Asynchronous evaluation
    • powered by channel in Vim8
  • Rich functions
  • ClojureScript support
    • figwheel and nashorn is supported currently

Installation

vim-plug

Plug 'guns/vim-sexp',    {'for': 'clojure'}
Plug 'liquidz/vim-iced', {'for': 'clojure'}

key mappings

vim-iced is providing default key mappings. To enable default key mappings, add folow line to your .vimrc.

let g:iced_enable_default_key_mappings = v:true

See vim-iced.txt fot actual mappings.

~/.lein/profile.clj

{:user
 {:dependencies [[cider/cider-nrepl "0.17.0"]
                 [cljfmt  "0.6.0"]]
  :repl-options {:nrepl-middleware [cider.nrepl/wrap-complete
                                    cider.nrepl/wrap-format
                                    cider.nrepl/wrap-info
                                    cider.nrepl/wrap-macroexpand
                                    cider.nrepl/wrap-ns
                                    cider.nrepl/wrap-out
                                    cider.nrepl/wrap-spec
                                    cider.nrepl/wrap-test
                                    cider.nrepl/wrap-undef]}
  :plugins [[refactor-nrepl "2.4.0-SNAPSHOT"]]}}

WARN cider.nrepl/wrap-trace will cause vim's freezing.

Usage

  1. lein repl
  2. Open source file
  3. Evaluate forms (If not connected, vim-iced will connect automatically)

Document

License

Copyright (c) 2018 Masashi Iizuka

Distributed under the MIT License.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK