vim-acme-metasyntactic


Ⅰ. 插件描述

Vim interface to Acme::MetaSyntactic

Ⅱ. 基本信息

创建日期:  2012-12-28
使用用户:  2
Github星:  0
插件作者:  Steven Humphrey

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'shumphrey/vim-acme-metasyntactic'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'shumphrey/vim-acme-metasyntactic'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'shumphrey/vim-acme-metasyntactic'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/shumphrey/vim-acme-metasyntactic

Ⅳ. 文档说明

Vim-Acme-MetaSyntactic

Vim interface to Acme::MetaSyntactic

Installation

With Pathogen

cd .vim
git clone git://github.com/shumphrey/Vim-Acme-MetaSyntactic.git bundle/metasyntactic

Or with git submodules

cd .vim
git submodule add git://github.com/shumphrey/Vim-Acme-MetaSyntactic.git bundle/metasyntactic

Without Pathogen

Checkout the module somewhere.
Then inside the .vimrc file,

source metasyntactic.vim

Set Up

metasyntactic.vim requires key bindings in your .vimrc to work.
Something along the lines of:

imap <Leader>n <C-R>=GetMetaSyntacticWord()<C-M>
map <Leader>n "=GetMetaSyntacticWord()<C-M>p

(See :help Leader)

Vim & Perl

the metasyntactic plugin requires a vim compiled with the perl option.
You should see a +perl from the following command:

vim --version |grep perl

Additionally, Acme::MetaSyntactic must be installed in the perl that vim uses.
This is typically the system perl and not any local perl/perlbrew set up.

添加新评论