angular-vim-snippets


Ⅰ. 插件描述

repo for UltiSnips & Snipmate for angular to be included as a submodule for use in your .vim directory

Ⅱ. 基本信息

创建日期:  2013-06-07
使用用户:  118
Github星:  67
插件作者:  Matthew Simo

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

UltiSnip & Snipmate Snippets for AngularJS

This repository contains snippets files for AngularJS including JavaScript, HTML, CoffeeScript and HAML.

Contents

snippets/*: snippets using snipmate format
UltiSnips/*: snippets using UltiSnips format

Installation

UltiSnip

  • git submodule add git@github.com:matthewsimo/angular-vim-snippets.git /path/you/want/it/
  • add ./UltiSnip to your list of g:UltiSnipsSnippetDirectories and you should be set

UltiSnip options

For ngdoc snippets in ultisnips, the module name can be overwritten in case
you're using a variable or js expression for your module name. Add this to your
modeline or set as needed.

let g:angular_module_name='FooBar' "Replace with your module name, of course.

Snipmate

  • git submodule add git@github.com:matthewsimo/angular-vim-snippets.git /path/you/want/it/
  • add ./snippets to your VIM 'runtimepath' or 'rtp'

    • e.g. rtp/snippets/<filetype>/*.snippets

NeoSnippets

  • git submodule add git@github.com:matthewsimo/angular-vim-snippets.git /path/you/want/it/
  • add ./snippets to g:neosnippet#snippets_directory

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

添加新评论