yasnippets


Ⅰ. 插件描述

Yet another plugin for snippets and file skeletons

Ⅱ. 基本信息

创建日期:  2007-07-15
使用用户:  1
Github星:  3
插件作者:  Valentin Valyaeff

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

With this plugin you may insert text snippets.  These is used for frequently
typed text, such as statements in programs, copyrights, timestamps and other.
This plugin supports several types of snippets: keyword snippets,
newline snippets, file skeletons, To work with this plugin you need support
for ruby ('+ruby' compile option and ruby language itself), ERb (embedded ruby
library for ruby), and imaps.vim plugin (vimscript#244).

Main advantages of this plugin are convenience and flexible way to define
snippets, "newline" snippets, and file skeletons with embedded ruby.

添加新评论