Ⅰ. 插件描述
Vim interface to Acme::MetaSyntacticⅡ. 基本信息
|
Ⅲ. 安装方法
使用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/metasyntacticOr with git submodules
cd .vim
git submodule add git://github.com/shumphrey/Vim-Acme-MetaSyntactic.git bundle/metasyntacticWithout Pathogen
Checkout the module somewhere.
Then inside the .vimrc file,
source metasyntactic.vimSet 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 perlAdditionally, 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.