Ⅰ. 插件描述
vim.emacs is a vim plugin to evaluate elisp expressions in Emacs.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ollej/vim-emacs'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ollej/vim-emacs'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ollej/vim-emacs'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ollej/vim-emacs
Ⅳ. 文档说明
# vim.emacs
vim.emacs is a vim plugin to evaluate elisp expressions in Emacs with a
server running.
May be useful if you edit your .emacs file with vim.
Isn't it awesome?!
Installation
Use Vim 8, pathogen or vundle to install vim.emacs.
Setup
Open Emacs and run the following command to start the server.
M-x server-startUsage
Select a range of lines with Elisp expressions and run the command :Emacs
Each line will be executed in Emacs and any output will be displayed in Vim.
Elisp
A couple of emacs lisp lines to try out.
(message "Hello, world!")
(info "Elisp")