Ⅰ. 插件描述
Vim plugin to provide utility functions for carc.inⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'makenowjust/carcin-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'makenowjust/carcin-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'makenowjust/carcin-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/makenowjust/carcin.vim
Ⅳ. 文档说明
# carcin.vim
This is Vim plugin to provide utility functions for [carc.in][].
motivation
[carc.in][] is the great website for sharing Crystal code. However it is website, I want to use such like it in my editor. So, I created this plugin.
install and setting
" Install
" If you use neobundle.vim:
NeoBundle 'MakeNowJust/carcin.vim'
" If you use Vundle.vim:
Plugin 'MakeNowJust/carcin.vim'
" Or if you use another plugin manager, please install carcin.vim
" Setting
" If you want to use play.crystal-lang.org instead of carc.in,
" please set this variable.
let g:carcin_url = "https://play.crystal-lang.org"Now, you can type :CarcinRun in Crystal file and run it ;)
cooperation to [vim-quickrun][]
let g:quickrun_config = g:quickrun_config || {}
let g:quickrun_config['crystal/carcin'] = {
\ 'runner': 'vimscript',
\ 'command': 'CarcinRunFile',
\ 'exec': "%C %S crystal",
\ }document
:help carcinlicense
This is licensed under MIT. Please look https://makenowjust.github.io/license/mit?2015.