vicr
vicr 
Vicr stands for "Vim-like Interactive CRystal" and represents a tiny command line application that designed to quickly execute Crystal code with fast feedback and options to proceed:
Installation
OS X
$ brew tap veelenga/tap
$ brew install vicr
From sources:
$ git clone https://github.com/veelenga/vicr
$ cd vicr
$ make
Usage
Open terminal, run vicr
, write your Crystal program, save and exit.
Options
Vicr is able to load file content for you to start playing with Crystal code straight away:
- use
-f
flag to load local (or even remote) file - use
-g
flag to load a Github gist
Use help (-h
) for more information.
Customization
It is possible to configure Vicr start-up settings using ~/.vicr/init.yaml
configuration file.
File with default config is created on a first run. You can customize it and use your favorite editor with required settings.
# ~/.vicr/init.yaml
---
run_file: ~/.vicr/run.cr
editor:
executable: nvim
args:
- "--cmd"
- "set paste"
Contributing
If you feel like you have a good idea to be implemented, please open a discussion. If you found a defect and enough motivated to fix it, pull requests are welcome.