• Stars
    star
    41
  • Rank 668,415 (Top 14 %)
  • Language
    Crystal
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

✌️ Vim-like Interactive CRystal

Build Status

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
$ sudo make install

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. For example:

# loads local file
$ vicr src/vicr/cli.cr

# loads Github file
$ vicr https://github.com/manastech/crystal/blob/master/samples/2048.cr

# loads Github gist
$ vicr https://gist.github.com/veelenga/a5b861ccd32ff559b7d2#file-benchmark_test-cr

# loads CarcIn file
$ vicr https://carc.in/#/r/rlj

# loads play.crystal-lang.org file
$ vicr https://play.crystal-lang.org/#/r/rlj

# loads raw file
$ vicr http://example.com/program.cr

Use help (-h flag) for more information.

Customization

It is possible to configure Vicr start-up settings using ~/.vicr/init.yaml configuration file. You can customize settings and use your favorite editor and even change compiler params:

# ~/.vicr/init.yaml
---
editor:
  executable: nvim
  args:
    - "--cmd"
    - "set paste"

compiler:
  executable: crystal
  args_before:
    - "run"
    - "--no-debug"

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.

More Repositories

1

awesome-crystal

💎 A collection of awesome Crystal libraries, tools, frameworks and software
Crystal
3,368
star
2

dress

👗 Dress up your stdout
Elixir
62
star
3

lua.cr

Crystal to Lua bridge
Crystal
60
star
4

carbon-now-sh.el

Emacs to https://carbon.now.sh integration
Emacs Lisp
56
star
5

aasm.cr

🔃 Easy to use finite state machine for Crystal classes
Crystal
51
star
6

emoji.cr

💚 Emoji for Crystal
Crystal
47
star
7

i3ipc-ruby

🛫 An improved Ruby library to control i3wm
Ruby
35
star
8

crystal-zsh

.oh-my-zsh plugin for Crystal
Shell
28
star
9

aws-lambda-face-blur

AWS Lambda Face Blur
JavaScript
17
star
10

aws-heic-converter

AWS Lamba HEIC Converter
JavaScript
13
star
11

shorturl.cr

A tiny library to use URL shortening services
Crystal
13
star
12

rainbow-spec

Rainbow spec formatter for Crystal
Crystal
12
star
13

rblist

Russia Ban List
TypeScript
11
star
14

yymmdd

⏳ Simple DSL for working with dates.
Crystal
9
star
15

wil

What I Learnt
Ruby
8
star
16

terminal-focus-reporting.el

Minor mode for terminal focus reporting
Emacs Lisp
7
star
17

ember-mail-to

Ember component to create HTML mailto links
JavaScript
6
star
18

play-crystal.el

Emacs to https://play.crystal-lang.org integration
Emacs Lisp
6
star
19

jsonapi-payload-explorer

JSON::API Payload Explorer
JavaScript
6
star
20

bojack.ex

Elixir client for BoJack - the unreliable key-value store 🐴
Elixir
5
star
21

aws-dynamodb.cr

Crystal client for AWS DynamoDB
Crystal
5
star
22

jira_report

📎 Cli tool that prints jira activity report.
Ruby
4
star
23

nyancat.ex

Nyancat for Elixir 🐱
Elixir
4
star
24

crystal-snippets

YASnippet Crystal snippets for Emacs
Emacs Lisp
3
star
25

raph

Ruby Argument Parsing for Humans
Ruby
2
star
26

heroku-buildpack-sidekiq.cr

Sidekiq for Crystal Heroku Buildpack
Shell
2
star
27

curly.el

Straight way to work with current file locations in Emacs
Emacs Lisp
2
star
28

aws-lambda-blur-by-rekognition-label

AWS Lambda to blur objects detected by AWS Rekognition
JavaScript
1
star
29

homebrew-tap

Ruby
1
star
30

veelenga.github.io

My own blog pages
CSS
1
star
31

cybfootball

Футбольні турніри факультету кібернетики
Ruby
1
star
32

any_setting

Load your settings with ease
Crystal
1
star
33

ee

exercism exercises
Elixir
1
star
34

hallo

I tiny project for Make your own Shard in Crystal language tutorial
Crystal
1
star
35

ctci

Solutions for Cracking the Coding Interview, 5th edition
Crystal
1
star
36

libcurl.cr

Crystal bindings to libcurl [WIP]
Crystal
1
star
37

react-flash-messages

Rails flash messages with React
Ruby
1
star
38

dotfiles

Storing my dotfiles
Emacs Lisp
1
star
39

crown

Preview markdown files locally with Crystal Markdown
Crystal
1
star
40

rev.ex

Use reveal.js in your Elixir 🚧
Elixir
1
star
41

kyiv-coworking-map

Kyiv Coworking Map
HTML
1
star