Ⅰ. 插件描述
This vim plugin provide lisp environments for vimmers.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mattn/lisper-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mattn/lisper-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mattn/lisper-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mattn/lisper-vim
Ⅳ. 文档说明
Lisper-Vim
This is lisper plugin. This vim plugin provide lisp environments for vimmers.
Lisp Machine
You can call lisper#eval() to evaluate expression.
:echo lisper#eval('(+ 1 2 3 4 5)')
15Or, make instance permanently.
:let engine = lisper#engine()
:echo engine.eval("(+ 1 2 3 4 5)")
15
:echo engine.eval("(+ 1 (length (quote abc))")
4The instance of lisp machine have global environment for the variable.
Repl for Lisp
You can run eval point loop in vim command-line.
:LisperRepllisp> (length (quote abcde))
5Author
Yasuhiro Matsumoto <mattn.jp@gmail.com>
Based Idea
This script based on http://norvig.com/lis.py