This repository contains snippets files for AngularJS including JavaScript, HTML, CoffeeScript and HAML.
snippets/*: snippets using snipmate format
UltiSnips/*: snippets using UltiSnips format
git submodule add git@github.com:matthewsimo/angular-vim-snippets.git /path/you/want/it/
- add
./UltiSnip
to your list ofg:UltiSnipsSnippetDirectories
and you should be set
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.
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
- e.g.
git submodule add git@github.com:matthewsimo/angular-vim-snippets.git /path/you/want/it/
- add
./snippets
tog:neosnippet#snippets_directory
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request