Ⅰ. 插件描述
A simple snippets manager for 'snipMate' Vim pluginⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tlavi/snipmgr'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tlavi/snipmgr'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tlavi/snipmgr'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tlavi/snipmgr
Ⅳ. 文档说明
SnipMgr provides a simple "SnipMgr" menu tree that allows you to easily
manage your snipMate snippets. In addition, you can use the :SnipAdd,
:SnipRemove and :SnipUpdate commands or the <leader>ssa, <leader>ssr,
and <leader>ssu key bindings.
USAGE:
Adding snippets
Just select any strings in visual-mode, Select-mode or visual-block
mode and call the :SnipAdd command by using the SnipMgr menu, command line,
or default key binding <leader>ssa.
Removing snippets
For removing already existing snippets use the :SnipRemove command or
<leader>ssr key binding.
Updating the snippets list
If you manually add any snippets for the current filetype, you can call the
:SnipUpdate command and use these snippets instantly without restarting
Vim. Default key binding: <leader>ssu.
REPOSITORY:
https://github.com/tlavi/SnipMgr