Ⅰ. 插件描述
Vim syntax highlighting for Asterisk configuration filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ipoddubny/asterisk-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ipoddubny/asterisk-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ipoddubny/asterisk-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ipoddubny/asterisk-vim
Ⅳ. 文档说明
asterisk-vim
Vim syntax highlight and SnipMate snippets for Asterisk config files.
Snippets for extensions.conf:
- exten<TAB> - takes exten from the previous string where available
- same<TAB>
Installation
Using Pathogen:
cd ~/.vim/bundle
git clone git://github.com/ipoddubny/asterisk-vim.gitManual installation:
Copy the files in syntax directory to ~/.vim/syntax/ and place asterisk.snippets to snipmate's snippets directory.
What's new
- support for multiline comments ;-- --;
- correct handling of escaped semicolon ; - it's not a comment
- support for "same =>" prefix in extensions.conf
- fixed hostname in "host=" for sip.conf, iax.conf, etc
- a few minor fixes for extensions.conf