my-snips


Ⅰ. 插件描述

snippets for Ultisnips

Ⅱ. 基本信息

创建日期:  2015-03-27
使用用户:  3
Github星:  3
插件作者:  chris yue

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'chrisyue/my-snips'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'chrisyue/my-snips'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'chrisyue/my-snips'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/chrisyue/my-snips

Ⅳ. 文档说明

# my-snips

My snippets for Ultisnips, mainly for languages of web development, like
PHP, HTML, CSS, SASS, .etc.

Also I am a fan of Symfony, so there are many snips about Symfony, Doctrine
, Twig, .etc.

With the Python power integrated into Ultisnips, my-snips can auto generate
complex code snippets, like generating namespace according to the filepath
or composer.json, or auto generating class, abstract class, interface or
trait according to the file name.

Please check the
snippet files
to get more details

namespace and class

installation

Assuming you are using Vundle, or
vim-plugin, Put the code below into
your .vimrc:

Plugin 'chrisyue/my-snippets'
"Or Plug 'chrisyue/my-snippets' if vim-plugin is used

then run :PluginInstall, or :PlugInstall if vim-plugin is used.

添加新评论