From 41aea0ab8750794d4a58edfb0bb44ba78eebc33e Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Mon, 3 Sep 2018 08:46:55 +0200 Subject: [PATCH] VIM: Remove snippets directory Snippets are now also managed by vim-plug. I moved my custom ones to rad4day/vim-custom-snippets Signed-off-by: Tobias Manske --- vim/config/plugins.vim | 1 + vim/snippets/bootstrap-snippets/README.md | 72 - .../bootstrap-snippets/addon-info.json | 9 - vim/snippets/bootstrap-snippets/dictionary | 348 --- .../bootstrap-snippets/snippets/haml.snippets | 1729 -------------- .../bootstrap-snippets/snippets/html.snippets | 2010 ----------------- .../custom/snippets/markdown.snippets | 140 -- vim/snippets/snipmate-snippets-bib/README.rst | 57 - .../snipmate-snippets-bib/addon-info.json | 15 - .../snippets/bib.snippets | 93 - vim/snippets/vim-snippets/.gitignore | 2 - vim/snippets/vim-snippets/.travis.yml | 8 - vim/snippets/vim-snippets/AUTHORS | 383 ---- vim/snippets/vim-snippets/LICENSE | 20 - vim/snippets/vim-snippets/README.md | 254 --- vim/snippets/vim-snippets/UltiSnips/README | 17 - .../vim-snippets/UltiSnips/ada.snippets | 282 --- .../vim-snippets/UltiSnips/all.snippets | 103 - .../vim-snippets/UltiSnips/bib.snippets | 52 - .../vim-snippets/UltiSnips/bindzone.snippets | 29 - .../vim-snippets/UltiSnips/blade.snippets | 135 -- .../vim-snippets/UltiSnips/c.snippets | 99 - .../UltiSnips/coffee-jasmine.snippets | 166 -- .../UltiSnips/coffee-react.snippets | 80 - .../vim-snippets/UltiSnips/coffee.snippets | 100 - .../vim-snippets/UltiSnips/cpp.snippets | 110 - .../vim-snippets/UltiSnips/crystal.snippets | 13 - .../vim-snippets/UltiSnips/cs.snippets | 372 --- .../vim-snippets/UltiSnips/css.snippets | 493 ---- .../vim-snippets/UltiSnips/cuda.snippets | 5 - .../vim-snippets/UltiSnips/d.snippets | 584 ----- .../vim-snippets/UltiSnips/django.snippets | 361 --- .../vim-snippets/UltiSnips/eelixir.snippets | 39 - .../vim-snippets/UltiSnips/erlang.snippets | 108 - .../vim-snippets/UltiSnips/eruby.snippets | 237 -- .../vim-snippets/UltiSnips/go.snippets | 115 - .../vim-snippets/UltiSnips/help.snippets | 37 - .../vim-snippets/UltiSnips/html.snippets | 530 ----- .../UltiSnips/html_minimal.snippets | 33 - .../UltiSnips/htmldjango.snippets | 299 --- .../vim-snippets/UltiSnips/htmljinja.snippets | 3 - .../vim-snippets/UltiSnips/java.snippets | 435 ---- .../UltiSnips/javascript-angular.snippets | 77 - .../UltiSnips/javascript-ember.snippets | 90 - .../javascript-jasmine-arrow.snippets | 48 - .../UltiSnips/javascript-jsdoc.snippets | 51 - .../UltiSnips/javascript-node.snippets | 65 - .../UltiSnips/javascript-openui5.snippets | 205 -- .../UltiSnips/javascript.snippets | 140 -- .../vim-snippets/UltiSnips/jinja2.snippets | 209 -- .../vim-snippets/UltiSnips/json.snippets | 51 - .../vim-snippets/UltiSnips/julia.snippets | 34 - .../vim-snippets/UltiSnips/ledger.snippets | 7 - .../vim-snippets/UltiSnips/lhaskell.snippets | 3 - .../vim-snippets/UltiSnips/lua.snippets | 98 - .../vim-snippets/UltiSnips/mako.snippets | 92 - .../vim-snippets/UltiSnips/markdown.snippets | 92 - .../vim-snippets/UltiSnips/matlab.snippets | 24 - .../vim-snippets/UltiSnips/objc.snippets | 272 --- .../vim-snippets/UltiSnips/ocaml.snippets | 174 -- .../vim-snippets/UltiSnips/pandoc.snippets | 12 - .../vim-snippets/UltiSnips/perl.snippets | 139 -- .../UltiSnips/php-laravel.snippets | 270 --- .../UltiSnips/php-phpspec.snippets | 222 -- .../UltiSnips/php-symfony2.snippets | 360 --- .../vim-snippets/UltiSnips/php.snippets | 260 --- .../vim-snippets/UltiSnips/proto.snippets | 52 - .../vim-snippets/UltiSnips/puppet.snippets | 235 -- .../vim-snippets/UltiSnips/python.snippets | 712 ------ .../vim-snippets/UltiSnips/r.snippets | 178 -- .../vim-snippets/UltiSnips/rails.snippets | 894 -------- .../vim-snippets/UltiSnips/rnoweb.snippets | 3 - .../vim-snippets/UltiSnips/rst.snippets | 311 --- .../vim-snippets/UltiSnips/ruby.snippets | 329 --- .../vim-snippets/UltiSnips/rust.snippets | 34 - .../vim-snippets/UltiSnips/sh.snippets | 99 - .../vim-snippets/UltiSnips/snippets.snippets | 21 - .../vim-snippets/UltiSnips/soy.snippets | 63 - .../UltiSnips/supercollider.snippets | 10 - .../vim-snippets/UltiSnips/tcl.snippets | 52 - .../vim-snippets/UltiSnips/tex.snippets | 149 -- .../vim-snippets/UltiSnips/texmath.snippets | 56 - .../UltiSnips/typescript.snippets | 3 - .../vim-snippets/UltiSnips/vim.snippets | 24 - .../vim-snippets/UltiSnips/vue.snippets | 1 - .../vim-snippets/UltiSnips/xhtml.snippets | 3 - .../vim-snippets/UltiSnips/xml.snippets | 16 - .../vim-snippets/UltiSnips/zsh.snippets | 17 - vim/snippets/vim-snippets/addon-info.json | 9 - .../vim-snippets/autoload/vim_snippets.vim | 27 - .../vim-snippets/plugin/vimsnippets.vim | 50 - .../pythonx/javascript_snippets.py | 48 - .../vim-snippets/pythonx/vimsnippets.py | 92 - vim/snippets/vim-snippets/snippets/_.snippets | 288 --- .../snippets/actionscript.snippets | 153 -- .../vim-snippets/snippets/ada.snippets | 217 -- .../vim-snippets/snippets/apache.snippets | 35 - .../vim-snippets/snippets/arduino.snippets | 124 - .../vim-snippets/snippets/autoit.snippets | 66 - .../vim-snippets/snippets/awk.snippets | 102 - vim/snippets/vim-snippets/snippets/c.snippets | 335 --- .../vim-snippets/snippets/chef.snippets | 204 -- .../vim-snippets/snippets/clojure.snippets | 87 - .../vim-snippets/snippets/cmake.snippets | 83 - .../snippets/codeigniter.snippets | 171 -- .../snippets/coffee/angular_coffee.snippets | 116 - .../snippets/coffee/coffee.snippets | 101 - .../snippets/coffee/jquery_coffee.snippets | 524 ----- .../snippets/coffee/requirejs_coffee.snippets | 11 - .../vim-snippets/snippets/cpp.snippets | 205 -- .../vim-snippets/snippets/crystal.snippets | 82 - .../vim-snippets/snippets/cs.snippets | 531 ----- .../vim-snippets/snippets/css.snippets | 987 -------- .../vim-snippets/snippets/cuda.snippets | 1 - vim/snippets/vim-snippets/snippets/d.snippets | 338 --- .../vim-snippets/snippets/dart.snippets | 82 - .../vim-snippets/snippets/diff.snippets | 11 - .../vim-snippets/snippets/django.snippets | 112 - .../vim-snippets/snippets/dosini.snippets | 12 - .../vim-snippets/snippets/eelixir.snippets | 34 - .../vim-snippets/snippets/elixir.snippets | 199 -- .../vim-snippets/snippets/elm.snippets | 51 - .../vim-snippets/snippets/erlang.snippets | 708 ------ .../vim-snippets/snippets/eruby.snippets | 132 -- .../vim-snippets/snippets/falcon.snippets | 71 - .../vim-snippets/snippets/fortran.snippets | 103 - .../vim-snippets/snippets/go.snippets | 246 -- .../vim-snippets/snippets/haml.snippets | 37 - .../vim-snippets/snippets/handlebars.snippets | 14 - .../vim-snippets/snippets/haskell.snippets | 115 - .../vim-snippets/snippets/html.snippets | 879 ------- .../vim-snippets/snippets/htmldjango.snippets | 142 -- .../snippets/htmltornado.snippets | 55 - .../vim-snippets/snippets/idris.snippets | 46 - .../vim-snippets/snippets/jade.snippets | 18 - .../vim-snippets/snippets/java.snippets | 295 --- .../snippets/javascript-bemjson.snippets | 52 - .../snippets/javascript-d3.snippets | 30 - .../snippets/javascript-mocha.snippets | 34 - .../snippets/javascript.es6.react.snippets | 81 - .../javascript/javascript-jasmine.snippets | 177 -- .../javascript/javascript-jquery.snippets | 589 ----- .../javascript/javascript-react.snippets | 83 - .../javascript/javascript-requirejs.snippets | 14 - .../javascript/javascript.es6.snippets | 55 - .../javascript/javascript.node.snippets | 51 - .../snippets/javascript/javascript.snippets | 281 --- .../vim-snippets/snippets/jinja.snippets | 142 -- .../vim-snippets/snippets/jsp.snippets | 99 - .../vim-snippets/snippets/julia.snippets | 102 - .../vim-snippets/snippets/laravel.snippets | 242 -- .../vim-snippets/snippets/ledger.snippets | 5 - .../vim-snippets/snippets/lfe.snippets | 18 - .../vim-snippets/snippets/ls.snippets | 108 - .../vim-snippets/snippets/lua.snippets | 21 - .../vim-snippets/snippets/make.snippets | 50 - .../vim-snippets/snippets/mako.snippets | 54 - .../vim-snippets/snippets/markdown.snippets | 138 -- .../vim-snippets/snippets/matlab.snippets | 64 - .../vim-snippets/snippets/mustache.snippets | 15 - .../vim-snippets/snippets/objc.snippets | 247 -- .../vim-snippets/snippets/openfoam.snippets | 53 - .../vim-snippets/snippets/perl.snippets | 363 --- .../vim-snippets/snippets/perl6.snippets | 116 - .../vim-snippets/snippets/php.snippets | 684 ------ .../vim-snippets/snippets/plsql.snippets | 109 - .../vim-snippets/snippets/po.snippets | 5 - .../vim-snippets/snippets/processing.snippets | 705 ------ .../vim-snippets/snippets/progress.snippets | 58 - .../vim-snippets/snippets/ps1.snippets | 58 - .../vim-snippets/snippets/puppet.snippets | 269 --- .../vim-snippets/snippets/purescript.snippets | 57 - .../vim-snippets/snippets/python.snippets | 242 -- vim/snippets/vim-snippets/snippets/r.snippets | 131 -- .../vim-snippets/snippets/rails.snippets | 490 ---- .../vim-snippets/snippets/rst.snippets | 98 - .../vim-snippets/snippets/ruby.snippets | 716 ------ .../vim-snippets/snippets/rust.snippets | 193 -- .../vim-snippets/snippets/sass.snippets | 1015 --------- .../vim-snippets/snippets/scala.snippets | 360 --- .../vim-snippets/snippets/scheme.snippets | 36 - .../vim-snippets/snippets/scss.snippets | 44 - .../vim-snippets/snippets/sh.snippets | 106 - .../vim-snippets/snippets/simplemvcf.snippets | 122 - .../vim-snippets/snippets/slim.snippets | 63 - .../vim-snippets/snippets/snippets.snippets | 8 - .../vim-snippets/snippets/sql.snippets | 26 - .../vim-snippets/snippets/stylus.snippets | 999 -------- .../snippets/supercollider.snippets | 22 - .../snippets/systemverilog.snippets | 73 - .../vim-snippets/snippets/tcl.snippets | 96 - .../vim-snippets/snippets/tex.snippets | 341 --- .../vim-snippets/snippets/textile.snippets | 30 - .../vim-snippets/snippets/twig.snippets | 34 - .../vim-snippets/snippets/typescript.snippets | 1 - .../vim-snippets/snippets/verilog.snippets | 63 - .../vim-snippets/snippets/vhdl.snippets | 127 -- .../vim-snippets/snippets/vim.snippets | 52 - .../vim-snippets/snippets/vue.snippets | 183 -- .../vim-snippets/snippets/xml.snippets | 12 - .../vim-snippets/snippets/xslt.snippets | 97 - .../vim-snippets/snippets/yii-chtml.snippets | 248 -- .../vim-snippets/snippets/yii.snippets | 300 --- .../vim-snippets/snippets/zsh.snippets | 66 - vim/snippets/vim-snippets/tests.sh | 15 - 205 files changed, 1 insertion(+), 36221 deletions(-) delete mode 100644 vim/snippets/bootstrap-snippets/README.md delete mode 100644 vim/snippets/bootstrap-snippets/addon-info.json delete mode 100644 vim/snippets/bootstrap-snippets/dictionary delete mode 100644 vim/snippets/bootstrap-snippets/snippets/haml.snippets delete mode 100644 vim/snippets/bootstrap-snippets/snippets/html.snippets delete mode 100644 vim/snippets/custom/snippets/markdown.snippets delete mode 100644 vim/snippets/snipmate-snippets-bib/README.rst delete mode 100644 vim/snippets/snipmate-snippets-bib/addon-info.json delete mode 100644 vim/snippets/snipmate-snippets-bib/snippets/bib.snippets delete mode 100644 vim/snippets/vim-snippets/.gitignore delete mode 100644 vim/snippets/vim-snippets/.travis.yml delete mode 100644 vim/snippets/vim-snippets/AUTHORS delete mode 100644 vim/snippets/vim-snippets/LICENSE delete mode 100644 vim/snippets/vim-snippets/README.md delete mode 100644 vim/snippets/vim-snippets/UltiSnips/README delete mode 100644 vim/snippets/vim-snippets/UltiSnips/ada.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/all.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/bib.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/bindzone.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/blade.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/c.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/coffee-jasmine.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/coffee-react.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/coffee.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/cpp.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/crystal.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/cs.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/css.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/cuda.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/d.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/django.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/eelixir.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/erlang.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/eruby.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/go.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/help.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/html.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/html_minimal.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/htmldjango.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/htmljinja.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/java.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/javascript-angular.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/javascript-ember.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/javascript-jasmine-arrow.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/javascript-jsdoc.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/javascript-node.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/javascript-openui5.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/javascript.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/jinja2.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/json.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/julia.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/ledger.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/lhaskell.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/lua.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/mako.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/markdown.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/matlab.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/objc.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/ocaml.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/pandoc.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/perl.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/php-laravel.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/php-phpspec.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/php-symfony2.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/php.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/proto.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/puppet.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/python.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/r.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/rails.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/rnoweb.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/rst.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/ruby.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/rust.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/sh.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/snippets.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/soy.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/supercollider.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/tcl.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/tex.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/texmath.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/typescript.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/vim.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/vue.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/xhtml.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/xml.snippets delete mode 100644 vim/snippets/vim-snippets/UltiSnips/zsh.snippets delete mode 100644 vim/snippets/vim-snippets/addon-info.json delete mode 100644 vim/snippets/vim-snippets/autoload/vim_snippets.vim delete mode 100644 vim/snippets/vim-snippets/plugin/vimsnippets.vim delete mode 100644 vim/snippets/vim-snippets/pythonx/javascript_snippets.py delete mode 100644 vim/snippets/vim-snippets/pythonx/vimsnippets.py delete mode 100644 vim/snippets/vim-snippets/snippets/_.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/actionscript.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/ada.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/apache.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/arduino.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/autoit.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/awk.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/c.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/chef.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/clojure.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/cmake.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/codeigniter.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/coffee/angular_coffee.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/coffee/coffee.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/coffee/jquery_coffee.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/coffee/requirejs_coffee.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/cpp.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/crystal.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/cs.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/css.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/cuda.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/d.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/dart.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/diff.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/django.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/dosini.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/eelixir.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/elixir.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/elm.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/erlang.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/eruby.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/falcon.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/fortran.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/go.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/haml.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/handlebars.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/haskell.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/html.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/htmldjango.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/htmltornado.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/idris.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/jade.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/java.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/javascript-bemjson.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/javascript-d3.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/javascript-mocha.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/javascript.es6.react.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/javascript/javascript-jasmine.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/javascript/javascript-jquery.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/javascript/javascript-react.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/javascript/javascript-requirejs.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/javascript/javascript.es6.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/javascript/javascript.node.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/javascript/javascript.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/jinja.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/jsp.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/julia.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/laravel.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/ledger.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/lfe.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/ls.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/lua.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/make.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/mako.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/markdown.snippets delete mode 100755 vim/snippets/vim-snippets/snippets/matlab.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/mustache.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/objc.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/openfoam.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/perl.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/perl6.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/php.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/plsql.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/po.snippets delete mode 100755 vim/snippets/vim-snippets/snippets/processing.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/progress.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/ps1.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/puppet.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/purescript.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/python.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/r.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/rails.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/rst.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/ruby.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/rust.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/sass.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/scala.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/scheme.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/scss.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/sh.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/simplemvcf.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/slim.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/snippets.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/sql.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/stylus.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/supercollider.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/systemverilog.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/tcl.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/tex.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/textile.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/twig.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/typescript.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/verilog.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/vhdl.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/vim.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/vue.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/xml.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/xslt.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/yii-chtml.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/yii.snippets delete mode 100644 vim/snippets/vim-snippets/snippets/zsh.snippets delete mode 100755 vim/snippets/vim-snippets/tests.sh diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index 621016e..03029c9 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -32,6 +32,7 @@ Plug 'SirVer/ultisnips' Plug 'honza/vim-snippets' Plug 'bonsaiben/bootstrap-snippets' Plug 'rbonvall/snipmate-snippets-bib' +Plug 'rad4day/vim-custom-snippets' " Compilers Plug 'xuhdev/singlecompile' diff --git a/vim/snippets/bootstrap-snippets/README.md b/vim/snippets/bootstrap-snippets/README.md deleted file mode 100644 index 6bcb562..0000000 --- a/vim/snippets/bootstrap-snippets/README.md +++ /dev/null @@ -1,72 +0,0 @@ -# Bootstrap Snippets - -HTML and Haml snippets for [Twitter Bootstrap 3.3.2](http://getbootstrap.com/) markup, for the Vim plugin [snipMate](https://github.com/garbas/vim-snipmate). - -![Animation](https://cloud.githubusercontent.com/assets/227274/5981940/c07ea88c-a901-11e4-859d-d87eeff19354.gif) - -## Dependencies - -- [vim-snipmate](https://github.com/garbas/vim-snipmate) -- [tlib\_vim](https://github.com/tomtom/tlib_vim) -- [vim-addon-mw-utils](https://github.com/MarcWeber/vim-addon-mw-utils) - -## Installation using [Pathogen](https://github.com/tpope/vim-pathogen) - - $ cd ~/.vim - $ mkdir bundle - $ cd bundle - - # Install dependencies: - $ git clone https://github.com/garbas/vim-snipmate.git - $ git clone https://github.com/tomtom/tlib_vim.git - $ git clone https://github.com/MarcWeber/vim-addon-mw-utils.git - - # Install bootstrap-snippets - $ git clone -b bootstrap-3-3-2 git://github.com/bonsaiben/bootstrap-snippets.git - - -## Usage - -In an html or haml file, type a trigger name in Insert mode, and press `Tab` to expand it into HTML markup. - -Trigger names are meant to be as predictable as possible without being too long or redundant. - -Most trigger names correspond directly to the relevant tag or class name, minus hyphens. For example, `btnprimary` becomes: - -```html - -``` - -##### Buttons - -Markup with `.btn` class uses the ` - - -snippet forminline Bootstrap -
-
- - -
-
- - -
-
- -
- -
- -snippet formhorizontal Bootstrap -
-
- -
- -
-
-
- -
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
- -snippet input Bootstrap - - -snippet textarea Bootstrap - - -snippet checkbox Bootstrap -
- -
- -snippet radio Bootstrap -
- -
-
- -
- -snippet checkboxinline Bootstrap - - -snippet radioinline Bootstrap - - - -snippet select Bootstrap - - -snippet selectmultiple Bootstrap - - -snippet formcontrolstatic Bootstrap -
- -
-

${2:email@example.com}

-
-
- -snippet inputdisabled Bootstrap - - -snippet fieldsetdisabled Bootstrap -
-
- - -
-
- - -
-
- -
- -
- -snippet inputreadonly Bootstrap - - -snippet formgrouphassuccess Bootstrap -
- - -
- -snippet formgrouphaswarning Bootstrap -
- - -
- -snippet formgrouphaserror Bootstrap -
- - -
- -snippet checkboxhassuccess Bootstrap -
-
- -
-
- -snippet checkboxhaswarning Bootstrap -
-
- -
-
- -snippet checkboxhaserror Bootstrap -
-
- -
-
- - -snippet formgrouphasfeedback Bootstrap -
- -
- ${2:@} - -
- - (success) -
- -snippet inputlg Bootstrap - - -snippet inputsm Bootstrap - - -snippet selectlg Bootstrap - - -snippet selectsm Bootstrap - - -snippet formgrouplg Bootstrap -
- -
- -
-
- -snippet formgroupsm Bootstrap -
- -
- -
-
- -snippet inputhelpblock Bootstrap - - - ${4:A block of help text that breaks onto a new line and may extend beyond one line.} - - - - -snippet btn Bootstrap - - -snippet abtn Bootstrap - ${2:Link} - -snippet inputbtn Bootstrap - - -snippet submitbtn Bootstrap - - - -snippet btndefault Bootstrap - - -snippet abtndefault Bootstrap - ${2:Default} - -snippet btnprimary Bootstrap - - -snippet abtnprimary Bootstrap - ${2:Primary} - -snippet btnsuccess Bootstrap - - -snippet abtnsuccess Description - ${2:Success} - -snippet btninfo Bootstrap - - -snippet abtninfo Bootstrap - ${2:Info} - -snippet btnwarning Bootstrap - - -snippet abtnwarning Bootstrap - ${2:Warning} - -snippet btndanger Bootstrap - - -snippet abtndanger Bootstrap - ${2:Danger} - -snippet btnlink Bootstrap - - -snippet abtnlink Bootstrap - ${2:Link} - - -snippet btnlg Bootstrap - - -snippet abtnlg Bootstrap - ${2:Large button} - -snippet btnsm Bootstrap - - -snippet abtnsm Bootstrap - ${2:Small button} - -snippet btnxs Bootstrap - - -snippet abtnxs Bootstrap - ${2:Extra small button} - -snippet btnblock Bootstrap - - -snippet abtnblock Bootstrap - ${2:Block level button} - -snippet btnactive Bootstrap - - -snippet abtnactive Bootstrap - ${2:Link} - -snippet btndisabled Bootstrap - - -snippet abtndisabled Bootstrap - ${2:Link} - - - -snippet imgresponsive Bootstrap - ${2:Responsive image} - -snippet imgrounded Bootstrap - ${2:...} - -snippet imgcircle Bootstrap - ${2:...} - -snippet imgthumbnail Bootstrap - ${2:...} - - - -snippet textmuted Bootstrap -

${1:...}

- -snippet textprimary Bootstrap -

${1:...}

- -snippet textsuccess Bootstrap -

${1:...}

- -snippet textinfo Bootstrap -

${1:...}

- -snippet textwarning Bootstrap -

${1:...}

- -snippet textdanger Bootstrap -

${1:...}

- - -snippet bgprimary Bootstrap -

${1:...}

- -snippet bgsuccess Bootstrap -

${1:...}

- -snippet bginfo Bootstrap -

${1:...}

- -snippet bgwarning Bootstrap -

${1:...}

- -snippet bgdanger Bootstrap -

${1:...}

- -snippet close Bootstrap - - -snippet caret Bootstrap - - - -snippet pullleft Bootstrap -
${1:...}
- -snippet pullright Bootstrap -
${1:...}
- -snippet centerblock Bootstrap -
${1:...}
- -snippet clearfix Bootstrap -
${1:...}
- - -snippet show Bootstrap -
${1:...}
- -snippet hidden Bootstrap - - -snippet invisible Bootstrap - - -snippet sronlyfocusable Bootstrap - ${2:Skip to main content} - -snippet texthide Bootstrap -

${1:Custom heading}

- - -snippet hiddenxs Bootstrap - - -snippet hiddensm Bootstrap - - -snippet hiddenmd Bootstrap -
${1:...}
- -snippet hiddenlg Bootstrap - - -snippet visiblexsblock Bootstrap -
${1:...}
- -snippet visiblexsinline Bootstrap -
${1:...}
- -snippet visiblexsinlineblock Bootstrap -
${1:...}
- -snippet visiblesmblock Bootstrap -
${1:...}
- -snippet visiblesminline Bootstrap -
${1:...}
- -snippet visiblesminlineblock Bootstrap -
${1:...}
- -snippet visiblemdblock Bootstrap -
${1:...}
- -snippet visiblemdinline Bootstrap -
${1:...}
- -snippet visiblemdinlineblock Bootstrap -
${1:...}
- -snippet visiblelgblock Bootstrap -
${1:...}
- -snippet visiblelginline Bootstrap -
${1:...}
- -snippet visiblelginlineblock Bootstrap -
${1:...}
- -snippet visibleprintblock Bootstrap -
${1:...}
- -snippet visibleprintinline Bootstrap -
${1:...}
- -snippet visibleprintinlineblock Bootstrap -
${1:...}
- -snippet hiddenprint Bootstrap -
${1:...}
- - - - -snippet glyphicon Bootstrap - - - -snippet dropdown Bootstrap - - -snippet dropdownmenuright Bootstrap - - -snippet dropdownheader Bootstrap - - -snippet divider Bootstrap - - -snippet lidisabled Bootstrap - - - -snippet btngroup Bootstrap -
- - - -
- -snippet abtngroup Bootstrap - - -snippet btntoolbar Bootstrap - - -snippet btngrouplg Bootstrap -
${2:...}
- -snippet btngroupsm Bootstrap -
${2:...}
- -snippet btngroupxs Bootstrap -
${2:...}
- -snippet btngroupvertical Bootstrap -
- ${2:...} -
- -snippet btngroupjustified Bootstrap -
-
- -
-
- -
-
- -
-
- -snippet abtngroupjustified Bootstrap - - - -snippet btndropdown Bootstrap - - -snippet btndropdownsplit Bootstrap -
- - - -
- -snippet btndropup Bootstrap -
- - - -
- - -snippet inputgroup Bootstrap -
- ${1:$} - - ${3:.00} -
- -snippet inputgrouplg Bootstrap -
- ${2:@} - -
- -snippet inputgroupsm Bootstrap -
- ${2:@} - -
- -snippet inputgroupcheckbox Bootstrap -
- - - - -
- -snippet inputgroupradio Bootstrap -
- - - - -
- -snippet inputgroupbtn Bootstrap -
- - - - -
- -snippet inputgroupbtndropdown Bootstrap - - - - -snippet navtabs Bootstrap - - -snippet navpills Bootstrap - - -snippet navpillsstacked Bootstrap - - -snippet navtabsjustified Bootstrap - - -snippet navpillsjustified Bootstrap - - -snippet navtabsdropdown Bootstrap - - -snippet navpillsdropdown Bootstrap - - - - - -snippet navbar Bootstrap - - -snippet navbarform Bootstrap - - -snippet navbarbtn Bootstrap - - -snippet navbartext Bootstrap - - -snippet navbarlink Bootstrap - ${2:Mark Otto} - -snippet navbarfixedtop Bootstrap - - -snippet navbarfixedbottom Bootstrap - - -snippet navbarstatictop Bootstrap - - -snippet navbarinverse Bootstrap - - - - - -snippet breadcrumb Bootstrap - - - - -snippet pagination Bootstrap - - -snippet paginationlg Bootstrap - - -snippet paginationsm Bootstrap - - -snippet pager Bootstrap - - -snippet pageraligned Bootstrap - - - - -snippet label Bootstrap - ${1:Default} - -snippet labeldefault Bootstrap - ${1:Default} - -snippet labelprimary Bootstrap - ${1:Primary} - -snippet labelsuccess Bootstrap - ${1:Success} - -snippet labelinfo Bootstrap - ${1:Info} - -snippet labelwarning Bootstrap - ${1:Warning} - -snippet labeldanger Bootstrap - ${1:Danger} - - - -snippet badge Bootstrap - ${2:Inbox} ${3:42} - -snippet badgebtn Bootstrap - - -snippet badgenav Bootstrap - - - -snippet jumbotron Bootstrap -
-

${1:Hello, world!}

-

${2:...}

-

${4:Learn more}

-
- -snippet jumbotroncontainer Bootstrap -
-
- ${1:...} -
-
- - - -snippet pageheader Bootstrap - - - - -snippet thumbnail Bootstrap - - ${3:...} - - -snippet thumbnailcontent Bootstrap -
- ${2:...} -
-

${3:Thumbnail label}

-

${4:...}

-

${6:Button} ${8:Button}

-
-
- - - -snippet alert Bootstrap - - -snippet alertsuccess Bootstrap - - -snippet alertinfo Bootstrap - - -snippet alertwarning Bootstrap - - -snippet alertdanger Bootstrap - - -snippet alertdismissible Bootstrap - - -snippet alertlink Bootstrap - - - - -snippet progress Bootstrap -
-
- $1% Complete -
-
- -snippet progresssuccess Bootstrap -
-
- $1% Complete -
-
- -snippet progressinfo Bootstrap -
-
- $1% Complete -
-
- -snippet progresswarning Bootstrap -
-
- $1% Complete -
-
- -snippet progressdanger Bootstrap -
-
- $1% Complete -
-
- -snippet progressstriped Bootstrap -
-
- $1% Complete -
-
- -snippet progressstripedactive Bootstrap -
-
- $1% Complete -
-
- -snippet progressstacked Bootstrap -
-
- $1% Complete (success) -
-
- $2% Complete (warning) -
-
- $3% Complete (danger) -
-
- - - -snippet media Bootstrap -
-
- - ${3:...} - -
-
-

${4:Media heading}

- ${5:...} -
-
- -snippet medialeft Bootstrap -
- - ${3:...} - -
- -snippet mediabody Bootstrap -
-

${1:Media heading}

- ${2:...} -
- -snippet mediaright Bootstrap -
- - ${3:...} - -
- -snippet mediamiddle Bootstrap -
- - ${3:...} - -
- -snippet mediabottom Bootstrap -
- - ${3:...} - -
- -snippet medialist Bootstrap - - - -snippet listgroup Bootstrap - - -snippet listgroupitem Bootstrap -
  • ${1:Cras justo odio}
  • - -snippet listgroupitembadge Bootstrap -
  • - ${1:14} - ${2:Cras justo odio} -
  • - -snippet alistgroupitem Bootstrap - ${2:Cras justo odio} - -snippet listgroupitemdisabled Bootstrap - ${2:Cras justo odio} - -snippet listgroupitemsuccess Bootstrap -
  • ${1:Dapibus ac facilisis in}
  • - -snippet listgroupiteminfo Bootstrap -
  • ${1:Cras sit amet nibh libero}
  • - -snippet listgroupitemwarning Bootstrap -
  • ${1:Porta ac consectetur ac}
  • - -snippet listgroupitemdanger Bootstrap -
  • ${1:Vestibulum at eros}
  • - -snippet alistgroupitemsuccess Bootstrap - ${2:Dapibus ac facilisis in} - -snippet alistgroupiteminfo Bootstrap - ${2:Cras sit amet nibh libero} - -snippet alistgroupitemwarning Bootstrap - ${2:Porta ac consectetur ac} - -snippet alistgroupitemdanger Bootstrap - ${2:Vestibulum at eros} - -snippet listgroupitemcontent Bootstrap -
  • -

    ${1:List group item heading}

    -

    ${2:...}

    -
  • - -snippet alistgroupitemcontent Bootstrap - -

    ${2:List group item heading}

    -

    ${3:...}

    -
    - - - - -snippet panel Bootstrap -
    -
    - ${1:Basic panel example} -
    -
    - -snippet panelheading Bootstrap -
    ${1:Panel heading without title}
    - -snippet panelheadingtitle Bootstrap -
    -

    ${1:Panel title}

    -
    - -snippet panelbody Bootstrap -
    - ${1:Panel content} -
    - -snippet panelfooter Bootstrap - - -snippet paneldefault Bootstrap -
    -
    - ${1:Basic panel example} -
    -
    - -snippet panelprimary Bootstrap -
    ${1:...}
    - -snippet panelsuccess Bootstrap -
    ${1:...}
    - -snippet panelinfo Bootstrap -
    ${1:...}
    - -snippet panelwarning Bootstrap -
    ${1:...}
    - -snippet paneldanger Bootstrap -
    ${1:...}
    - -snippet paneltable Bootstrap -
    - -
    ${1:Panel heading}
    -
    -

    ${2:...}

    -
    - - - - ${3:...} -
    -
    - -snippet panellistgroup Bootstrap -
    - -
    ${1:Panel heading}
    -
    -

    ${2:...}

    -
    - - -
      -
    • ${3:Cras justo odio}
    • -
    • ${4:Dapibus ac facilisis in}
    • -
    • ${5:Morbi leo risus}
    • -
    • ${6:Porta ac consectetur ac}
    • -
    • ${7:Vestibulum at eros}
    • -
    -
    - - - -snippet embedresponsive Bootstrap - -
    - -
    - - -
    - -
    - - - -snippet well Bootstrap -
    ${1:...}
    - -snippet welllg Bootstrap -
    ${1:...}
    - -snippet wellsm Bootstrap -
    ${1:...}
    - - - - -snippet modal Bootstrap - - -snippet modallg Bootstrap - - -snippet modalsm Bootstrap - - - - -snippet scrollspy Bootstrap - -
    - -
    - - - -snippet tabpanel Bootstrap -
    - - - - - -
    -
    ${9:...}
    -
    ${10:...}
    -
    ${11:...}
    -
    ${12:...}
    -
    - -
    - - -snippet tooltip Bootstrap - - -snippet atooltip Bootstrap - ${2:Tooltip on left} - -snippet tooltiptop Bootstrap - - -snippet atooltiptop Bootstrap - ${2:Tooltip on top} - -snippet tooltipleft Bootstrap - - -snippet atooltipleft Bootstrap - ${2:Tooltip on left} - -snippet tooltipbottom Bootstrap - - -snippet atooltipbottom Bootstrap - ${2:Tooltip on bottom} - -snippet tooltipright Bootstrap - - -snippet atooltipright Bootstrap - ${2:Tooltip on right} - - - -snippet popover Bootstrap - - -snippet apopover Bootstrap - ${3:Dismissible popover} - -snippet popovertop Bootstrap - - -snippet apopovertop Bootstrap - ${3:Popover on top} - -snippet popoverleft Bootstrap - - -snippet apopoverleft Bootstrap - ${3:Popover on left} - -snippet popoverbottom Bootstrap - - -snippet apopoverbottom Bootstrap - ${3:Popover on bottom} - -snippet popoverright Bootstrap - - -snippet apopoverright Bootstrap - ${3:Popover on right} - -snippet apopoverdismissible Bootstrap - ${3:Dismissible popover} - - - -snippet btnstatetext Bootstrap - - -snippet btnsingletoggle Bootstrap - - -snippet btngroupcheckbox Bootstrap -
    - - - -
    - -snippet btngroupradio Bootstrap -
    - - - -
    - - - -snippet btncollapse Bootstrap - -
    -
    - ${3:...} -
    -
    - -snippet abtncollapse Bootstrap - -
    -
    - ${3:...} -
    -
    - -snippet accordian Bootstrap -
    -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. -
    -
    -
    -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. -
    -
    -
    -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. -
    -
    -
    -
    - - - -snippet carousel Bootstrap - - - - -snippet affix Bootstrap -
    - ${3:...} -
    - - - diff --git a/vim/snippets/custom/snippets/markdown.snippets b/vim/snippets/custom/snippets/markdown.snippets deleted file mode 100644 index ac3b9ca..0000000 --- a/vim/snippets/custom/snippets/markdown.snippets +++ /dev/null @@ -1,140 +0,0 @@ -snippet R - \mathbb{R} -snippet N - \mathbb{N} -snippet Z - \mathbb{Z} -snippet F - \mathbb{F} -snippet Q - \mathbb{Q} -snippet C - \mathbb{C} -snippet .R - $\mathbb{R}$ -snippet .Q - $\mathbb{Q}$ -snippet .C - $\mathbb{C}$ -snippet .N - $\mathbb{N}$ -snippet .Z - $\mathbb{Z}$ -snippet .F - $\mathbb{F}$ -snippet eps - \varepsilon -snippet to - \to -snippet ss - \subset -snippet sse - \subseteq -snippet sm - \setminus -snippet toi - ( ${1} \to\infty) -snippet q - \quad -snippet liminf - \lim\limits_{${1:n} \to \infty} -snippet lim0 - \lim\limits_{${1:n} \to 0} ${2} -snippet <=> - \Leftrightarrow -snippet => - \Rightarrow -snippet o= - \overset{${1}}{=} -snippet o=> - \overset{${1}}{\Rightarrow} -snippet sqrt - \sqrt[${1:2}]{${2}} -snippet qfa - \quad (\forall ${1} \in \mathbb{${2}}) -snippet qin - \quad (${1} \in \mathbb{${2}}) -snippet in - \in -snippet ex - \exists -snippet for - \forall -snippet func - $${1}: \mathbb{${2}} \rightarrow \mathbb{${3}}$ -snippet (a - (a_{${1}}^{(${2})}) -snippet $(a - $(a_{${1}}^{(${2})})$ -snippet < - \langle ${1} \rangle -snippet .< - $\langle ${1} \rangle$ -snippet frac - \frac{${1}}{${2}} -snippet sum - \sum^{${2}}_{${1}}{${3}} -snippet int - \int^{${2}}_{${1}}{${3}} -snippet lemma - \begin{lemma} - ${1} - \end{lemma} - -snippet proof - \begin{proof} - ${1} - \end{proof} -snippet def - \begin{definition} - ${1} - \end{definition} -snippet rem - \begin{rem} - ${1} - \end{rem} - -snippet bsp - \begin{bsp} - ${1} - \end{bsp} - -snippet satz - \begin{satz} - ${1} - \end{satz} - -snippet align - \begin{align*} - ${1} - \end{align*} - -snippet itemi - \begin{itemize} - \item ${1} - \end{itemize} - -snippet enum - \begin{enumerate} - \item ${1} - \end{enumerate} - -snippet enumabc - \begin{enumerate}[label=(\alph*)] - \item ${1} - \end{enumerate} - -snippet cases - \begin{cases} - ${1}, falls ${2}\\\\ - ${3}, sonst - \end{cases} -snippet matrix - \`\`\`{python, echo=FALSE, results="asis"} - #!/usr/bin/env python3 - # -*- coding: utf-8 -*- - D = [${1:[1,2,3],[4,5,6],[7,8,9]}] - print("\\\\left(\\\\begin{array}{" + 'c'*len(D[0]) + "}") - for r in D: print(' & '.join(str(x) for x in r) + "\\\\\\\\") - print("\\\\end{array}\\\\right)") - \`\`\` diff --git a/vim/snippets/snipmate-snippets-bib/README.rst b/vim/snippets/snipmate-snippets-bib/README.rst deleted file mode 100644 index a645d56..0000000 --- a/vim/snippets/snipmate-snippets-bib/README.rst +++ /dev/null @@ -1,57 +0,0 @@ -Snipmate.vim support for BibTeX files -===================================== - -This plugin provides some snippets -for writing BibTeX (``.bib``) files. - -The supported entry types are: -``Article``, -``Book``, -``Booklet``, -``Conference``, -``InBook``, -``InCollection``, -``InProceedings``, -``Manual``, -``MastersThesis``, -``Misc``, -``PhDThesis``, -``Proceedings``, -``TechReport`` and -``Unpublished``. -The trigger words are these names converted to lower case. -Most of the optional fields (such as ``annote`` and ``eprint``) are not included. - -I tested this plugin against `garbas's Snipmate fork`_. -If it doesn't work with your own configuration, please let me know. - -.. _garbas's Snipmate fork: https://github.com/garbas/vim-snipmate - -Dependencies ------------- -* Vim (of course) -* Snipmate_. - -Installation ------------- -This addon is compatible with Pathogen_ and Vundle_. -If you use one of them, -you are awesome so you'll know what to do. - -I pretend to support installation with VAM_ as well, -but I haven't tried it. - -If you are an old-fashioned Vimmer, -just drop the bib.snippets_ file -into the ``snippets`` directory -of your Snipmate install. - -.. _Snipmate: https://github.com/garbas/vim-snipmate -.. _Pathogen: https://github.com/tpope/vim-pathogen -.. _VAM: https://github.com/MarcWeber/vim-addon-manager -.. _bib.snippets: https://github.com/rbonvall/snipmate-snippets-bib/blob/master/snippets/bib.snippets - -Author ------- -Roberto Bonvallet - diff --git a/vim/snippets/snipmate-snippets-bib/addon-info.json b/vim/snippets/snipmate-snippets-bib/addon-info.json deleted file mode 100644 index fdf95e6..0000000 --- a/vim/snippets/snipmate-snippets-bib/addon-info.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name" : "snipmate-snippets-bib", - "author" : "Roberto Bonvallet ", - "repository" : { - "type": "git", - "url": "git://github.com/rbonvall/snipmate-snippets-bib.git" - }, - "dependencies" : { - "snipmate": { - "type": "git", - "url": "https://github.com/garbas/vim-snipmate.git" - } - }, - "description" : "Snipmate.vim support for BibTeX files." -} diff --git a/vim/snippets/snipmate-snippets-bib/snippets/bib.snippets b/vim/snippets/snipmate-snippets-bib/snippets/bib.snippets deleted file mode 100644 index 2fa837c..0000000 --- a/vim/snippets/snipmate-snippets-bib/snippets/bib.snippets +++ /dev/null @@ -1,93 +0,0 @@ -# Based on http://pts.szit.bme.hu/bibtex-cheat-sheet.txt -# Most optional fields are not included. -snippet article - @Article{ ${1:id}, - author = {${2:authors separated by "and"}}, - title = {${3:title}}, - journal = {${4:journal}}, - year = ${5:year}, - } -snippet book - @Book{ ${1:id}, - ${2:author/editor} = {${3:$2s separated by "and"}}, - title = {${4:title}}, - publisher = {${5:publisher}}, - year = ${6:year}, - } -snippet booklet - @Booklet{ ${1:id}, - title = {${2:title}}, - author = {${3:authors separated by "and"}}, - } -snippet conference - @Conference{ ${1:id}, - author = {${2:authors separated by "and"}}, - title = {${3:title}}, - booktitle = {${4:book title}}, - year = ${5:year}, - } -snippet inbook - @InBook{ ${1:id}, - ${2:author/editor} = {${3:$2s separated by "and"}}, - title = {${4:title}}, - ${5:chapter/pages} = {${6:$5}}, - publisher = {${7:publisher}}, - year = ${8:year}, - } -snippet incollection - @InCollection{ ${1:id}, - author = {${2:authors separated by "and"}}, - title = {${3:title}}, - booktitle = {${4:book title}}, - year = ${5:year}, - } -snippet inproceedings - @InProceedings{ ${1:id}, - author = {${2:authors separated by "and"}}, - title = {${3:title}}, - booktitle = {${4:book title}}, - year = ${5:year}, - } -snippet manual - @Manual{ ${1:id}, - title = {${2:title}}, - author = {${3:authors separated by "and"}}, - } -snippet masters - @MastersThesis{ ${1:id}, - author = {${2:authors separated by "and"}}, - title = {${3:title}}, - school = {${4:school}}, - year = ${5:year}, - } -snippet misc - @Misc{ ${1:id}, - author = {${2:authors separated by "and"}}, - title = {${3:title}}, - } -snippet phd - @PhDThesis{ ${1:id}, - author = {${2:authors separated by "and"}}, - title = {${3:title}}, - school = {${4:school}}, - year = ${5:year}, - } -snippet proceedings - @Proceedings{ ${1:id}, - title = {${2:title}}, - year = {${3:year}}, - } -snippet techreport - @TechReport{ ${1:id}, - author = {${2:authors separated by "and"}}, - title = {${3:title}}, - institution = {${4:institution}}, - year = ${5:year}, - } -snippet unpublished - @Unpublished{ ${1:id}, - author = {${2:authors separated by "and"}}, - title = {${3:title}}, - note = {${4:note}}, - } - diff --git a/vim/snippets/vim-snippets/.gitignore b/vim/snippets/vim-snippets/.gitignore deleted file mode 100644 index f3d74a9..0000000 --- a/vim/snippets/vim-snippets/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*.pyc -*~ diff --git a/vim/snippets/vim-snippets/.travis.yml b/vim/snippets/vim-snippets/.travis.yml deleted file mode 100644 index 74f2796..0000000 --- a/vim/snippets/vim-snippets/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: c -sudo: false - -notifications: - email: false - -script: - - ./tests.sh diff --git a/vim/snippets/vim-snippets/AUTHORS b/vim/snippets/vim-snippets/AUTHORS deleted file mode 100644 index 907daef..0000000 --- a/vim/snippets/vim-snippets/AUTHORS +++ /dev/null @@ -1,383 +0,0 @@ -Authors -=============================================================================== - -Generated with "git log --oneline --pretty="%an" | sort | uniq > AUTHORS - -Aaron Broder -Adnan Zafar -afolmert -aisensiy -Alexander Ross -Alexandre de Oliveira -Alexey Shevchenko -Alex Tan -Allen.M -Alvin Chan -ALX-Liu-Xiao -Andrea Giardini -Andreas Krennmair -Andreas Steinel -Andrei Cristian Petcu -Andrej Radovic -Andre Walker -Andrey Paskal -Andy Waite -Angel Alonso -Ángel Alonso -Anne Douwe Bouma -Anthony Wilson -Arvind -ashfinal -Audrius Kažukauskas -Austin Wood -Aydar Khabibullin -babybeasimple -Benjamin Nørgaard -Bernhard Graf -Bill Casarin -binaryplease -Björn -Björn-Egil Dahlberg -BlackEagle -Boone Severson -bounceme -Bradlee Speice -Brandon Dulaney -Brandon Hilkert -Brian Hogan -Brian van Burken -Bruno Sutic -Camilo Payan -carme -Cézar Antáres -Chad Paradis -Chen Zhongzheng -Ches Martin -ChickenNuggers -Chipairon -Chris Dueck -Chris Nicola -Chris Sims -Christian -Christian Höltje -Christian Neumüller -Christopher Joslyn -chrisyue -Ciro Santilli -Ciro Santilli 六四事件 法轮功 -Claudio Maradonna -Connor Atherton -Cooper LeBrun -Corentin Peuvrel -Craig Paterson -Craig P Jolicoeur -crazymaster -daa84 -Daeyun Shin -Dale Roberts -Daniel Hahler -Dan Loewenherz -Danny Navarro -daoo -Darrell Hamilton -David Arvelo -David Barnett -David C. Bishop -David Deryl Downey - AKA Deryl R. Doucette -David Rodríguez de Dios -David Sanson -dengyaolong -Derek Morey -dhilipsiva -djdt -Dmitry Dementev -Donny Yang -DSIW -dzikie drożdże -Eduardo Gurgel -Eli Gundry -emzap79 -Enric Lluelles -Enrico Maria De Angelis -Erich Heine -Erik Westrup -Ernest -Eugene Kalinin -Eustaquio Rangel -Eustáquio Rangel -Fatih Arslan -Felix Jung -Filipe Giusti -Florent Lévigne -Florian Sattler -frans -Fuad Saud -Gabriel Chavez -Gaël Chamoulaud -Gea-Suan Lin -George Guimarães -George Lee -Georgios Samaras -Gert -gfixler -Gilad Peleg -gk -goonnow -Gueunet Charles -Gui Lin -guneysus -Gustavo Chain -Gustavo Ferreira -Hans-Guenter -Harald Wartig -Henrik Kjelsberg -HIRAKI Satoru -Holger Rapp -Honza -Honza Pokorny -hulufei -Igor Goldvekht -Ilker Cetinkaya -indi -Indra Susila -Ionică Bizău -Iuri Fernandes -Jack Stalnaker -Jacobo de Vera -Jacques Kvam -jake romer -Jakub Stasiak -James Turley -Jan Mollowitz -Jason S. Jones -Jean Jordaan -Jeffrey Tratner -Jens Hoepken -jiangyc0 -Jim Deville -Jinzhu -Joey Curtin -Johannes Wienke -jonasac -Jonas Bygdén -Jonathan Martin -Jorge García -Jorge López Pérez -Joseph Lin -Josh Bode -Josh Davis -Josh Matthews -Josh Vandergrift -Josh Wainwright -JuanPablo -Julian Bennecker -Julien Deniau -Julien Pivard -Julien Stechele -Julien STECHELE -Kalinin Eugene -kenshin54 -Kentaro Imai -Kevin Koltz -Kevin Lui -Kevin Mees -Kevin Murray -Kevin Schaul -Konstantin -Konstantin Gorodinskiy -Laas Toom -Laurent Georget -laxtiz -Leandro Moreira -Leonardo B -Leonidez Acosta -linduxed -Li Xin -Louis -Louis Pilfold -Lucas Hoffmann -Luis Carlos Cruz -Luis Carlos Cruz Carballo -Luiz Gonzaga dos Santos Filho -majjoha -mangege -Marc Camuzat -Marcelo D Montu -Marcelo Jacobus -Marcin Kulik -Marcus Kammer -Marc Weber -Mario de Frutos -Markus Benning -marocchino -Martin Atukunda -Martin Heuschober -Martxel Lasa -Matěj Cepl -Mathew Attlee -Mathieu Comandon -Matthew Barry -Matthias Viehweger -Mattia Tezzele -Matt Rasband -Matt Stevens -Mauro Porras P -Maximiliano Robaina -Mayeu (Cast) -Meng Zhuo -Michael Gehring -Michael Hinrichs -Michael Rutter -Michael Thessel -Michi Huber -Mickey -midchildan -Mike Foley -Mike Smullin -Miki Tebeka -Minjong Chung -M. Maxwell Watson -mMontu -mockturtl -m-pilia -Muhammad Hallaj Subery -mwcz -Namit -Nan Cloudio Jiang -Nan Zheng -Nate Mara -netei -Ngo The Trung -Nguyen Le -Nick Janetakis -Nicklasos -Nick Papanastasiou -Nicolas G. Querol -Nico Suhl -No Ducks -Norman Messtorff -obaoba -oddlydrawn -Oleg Voronkovich -Ole Hansen -Oliver Andrich -Ondrej Slinták -onemanstartup -opennota -Paco Esteban -Panagiotis Mavrogiorgos -Paolo Cretaro -Pascal -Paulo Romeira -Pawel Jankowski -phcerdan -Philippe Mongeau -Philipp Jovanovic -Piotr Jawniak -Piotr Yordanov -Pirogov Evgenij -Pompeu -Povilas Balzaravicius Pawka -Procras -protream -pydave -r4d2 -Radosław Szymczyszyn -Ralph-Wang -Raül Torralba -raydeal -rcolombo -Rekky -René -Rene Vergara -Renzo Poddighe -Reyes Yang -ricardogcolombo -Ricardo Jesus -Rich Layte -Roberto Miranda -robin -Robin Grindrod -Rok Garbas -Roland Sommer -Rory McNamara -rsw0x -rtorralba -Ruben Vereecken -Ryan Bright -Ryan Pineo -Ryan Wang -Sam Shepherd -Santiago Gallego -sasidhar-d -Sathors -Sebastian Röder -Sebastian Wiesner -Sergey Lebedev -Sergey Zasenko -Serhiy Oplakanets -SevereOverfl0w -Simeon F. Willbanks -Simeon Willbanks -Simon Désaulniers -sirex -skv -Sokovikov -Srijan Choudhary -Steeve -stefan -Stephen Tudor -Stephen Woods -Steve Brown -Steven Humphrey -Steven Oliver -Stuart Grimshaw -Sudar -¨switch87¨ -Tevin Zhang -theocrite -Thiago de Arruda -Thomas Duerr -Thomas Szymanski -tinyladi -Tobias Witt -Tobie Warburton -Tomasz Wisniewski -Tom Vincent -Tony -Tony Narlock -toogley -Torbjørn Vatn -tormaroe -ToruIwashita -Travis Holton -Trevor Sullivan -troydm -tUrG0n -twabiko -Tyler Ball -tyronepost -Tyrone Post -Vadim Khohlov -Vincent Hsu -Vladimir Rybas -Vladislav Khvostov -Vorzard -Vzaa -Waldecir Santos -Wildsky Fann -William Ma -William Travis Holton -X4fyr -xz.zhang -Yamamoto Yuji -Yannick Brehon -yerv000 -Yike Lu -yuhuanbo -Yu Huanbo -Yves Lange -yvhn -zauguin -Zaven Muradyan -ZPH diff --git a/vim/snippets/vim-snippets/LICENSE b/vim/snippets/vim-snippets/LICENSE deleted file mode 100644 index 495ced2..0000000 --- a/vim/snippets/vim-snippets/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2011 see AUTHORS - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/vim/snippets/vim-snippets/README.md b/vim/snippets/vim-snippets/README.md deleted file mode 100644 index 5567c5d..0000000 --- a/vim/snippets/vim-snippets/README.md +++ /dev/null @@ -1,254 +0,0 @@ -snipMate & UltiSnip Snippets -============================ - -[![Build Status](https://travis-ci.org/honza/vim-snippets.svg)](https://travis-ci.org/honza/vim-snippets) - -This repository contains snippets files for various programming languages. - -It is community-maintained and many people have contributed snippet files and -other improvements already. - -Contents --------- - -- `snippets/*`: snippets using snipMate format -- `UltiSnips/*`: snippets using UltiSnips format - -Snippet engines supporting vim-snippets ----------------------------------------- - -There are different forks of snippet engines which allow the user to insert -snippets by typing the name of a snippet hitting the expansion mapping. - -- [github.com/SirVer/ultisnips](https://github.com/SirVer/ultisnips): - python, supports all snippets in this repo. -- [github.com/garbas/vim-snipmate](https://github.com/garbas/vim-snipmate): - VimL, snipmate-snippets, engine sometimes behaves strange. Supports - snippets/* -- [github.com/Shougo/neosnippet](https://github.com/Shougo/neosnippet.vim): - VimL, supports snippets/* with some configuration. -- [github.com/drmingdrmer/xptemplate](https://github.com/drmingdrmer/xptemplate): - Totally different syntax, does not read snippets contained in this file, but - it is also very powerful. It does not support vim-snippets (just listing it - here for completeness) - -There tries to be a more comprehensive list (which still is incomplete) here: -http://vim-wiki.mawercer.de/wiki/topic/text-snippets-skeletons-templates.html - -UltiSnips has additional features such as high speed, nesting snippets, -expanding snippets in snippets and offers powerful transformations on text in -snippets (like visual selections or placeholder texts). - -Which one to use? If you have python give -[SirVer/ultisnips](https://github.com/SirVer/ultisnips) a try because its fast -and has the most features. - -If you have VimL only (vim without python support) your best option is using -[garbas/vim-snipmate](https://github.com/garbas/vim-snipmate) and cope with the -minor bugs found in the engine. - -Q: Should "snipMate be deprecated in favour of UltiSnips"? - -A: No, because snipMate is VimL, and UltiSnips requires Python. -Some people want to use snippets without having to install Vim with Python -support. Yes - this sucks. - -One solution would be: Use snippets if they are good enough, but allow overriding them -in UltiSnips. This would avoid most duplication while still serving most users. -AFAIK there is a nested-placeholder branch for snipMate too. snipMate is still -improved by Adnan Zafar. So maybe time is not ready to make a final decision yet. - -[github issue/discussion](https://github.com/honza/vim-snippets/issues/363) - -Vendor Snippets ---------------- - -Additional library and framework snippets are available for UltiSnips users in -the `UltiSnips/` directory. These files are removed from the default language -namespaces to prevent them from all being loaded automatically. If there is a -separate library, framework, or package you would like to support open a pull -request! - -Additional snippets can be added to the current buffer with the -`:UltiSnipsAddFiletypes` command followed by the snippet name without the -"snippets" ending. For example, to add the JavaScript Jasmine snippets, run: -`:UltiSnipsAddFiletypes javascript-jasmine`. To have this snippet loaded -everytime a JavaScript file is opened or created you can add the command to your - -`.vim/ftplugin/javascript.vim` file. Another way is to add - `autocmd FileType js UltiSnipsAddFiletypes javascript-jasmine` in your `.vimrc`. - - -For more see the UltiSnips docs (`:help UltiSnips`). - -Installation ------------- - -First be aware that there are many options, see "Snippet engines" above. -Second be aware than there are [tons of plugin managers](http://vim-wiki.mawercer.de/wiki/topic/vim%20plugin%20managment.html) -which is why Marc Weber thinks that it doesn't make sense to repeat the same -repetitive information everywhere. - -*Recommended way:* -[vim-addon-manager](https://github.com/MarcWeber/vim-addon-manager) (because Marc Weber wrote it for exactly -this reason, it supports simple dependency management). E.g. you're done by this -line in your `.vimrc`: - -```vim -" assuming you want to use snipmate snippet engine -ActivateAddons vim-snippets snipmate -``` - -[vim-pi](https://bitbucket.org/vimcommunity/vim-pi/issue/90/we-really-need-a-web-interface) -Is the place to discuss plugin managers and repository resources. - -About how to install snipMate see [snipmate@garbas](https://github.com/garbas/vim-snipmate) - -(Bundle, Pathogen, git clone - keywords to make people find this link by ctrl-f search) -I know that I should be reading the docs of the snippet engine, just let me copy paste into my `.vimrc`: -[See this pull request](https://github.com/honza/vim-snippets/pull/307/files). - -TROUBLE -======= - -If you still have trouble getting this to work create a GitHub ticket, ask on -IRC or the mailing list. - -Policies / for contributors ---------------------------- - -Some snippets are useful for almost all languages, so let's try to have the same -triggers for them: - -``` -if : if without else -ife: if $1 else $2 -eif : else if ($1) { .. } -el : else .. -wh : while (cond) ... -``` - -Don't add useless placeholder default texts like: - -``` -if (${1:condition}){ - ${0:some code here} -} -``` -instead use: - -``` -if (${1}){ - ${0:${VISUAL}} -} -``` - -Exception: Functions which are used less often, such as Vim's `matchall()`, `matchstr()` -functions which case hints may be helpful to remember order. In the VimL case -get vim-dev plugin which has function completion - -Thus for conditions (while, if ..) and block bodies just use ${N} - Thanks - -When the snippet can be used to wrap existing code leverage `${VISUAL}` - -Open questions: -What about one line if ee then .. else .. vs if \n .. then \n ... \n else \n .. ? -Which additional policies to add? -Discuss at: https://github.com/honza/vim-snippets/issues/230 - -*folding markers*: -Until further work is done on `vim-snipmate`, please don't add folding markers -into snippets. `vim-snipmate` has some comments about how to patch all snippets -on the fly adding those. - -Currently all snippets from UltiSnips have been put into UltiSnips - some work -on merging should be done (dropping duplicates etc). Also see engines section above. - -Related repositories --------------------- - -We also encourage people to maintain sets of snippets for particular use cases -so that all users can benefit from them. People can list their snippet repositories here: - -* https://github.com/rbonvall/snipmate-snippets-bib (snippets for BibTeX files) -* https://github.com/sudar/vim-arduino-snippets (snippets for Arduino files) -* https://github.com/zedr/zope-snipmate-bundle.git (snippets for Python, TAL and ZCML) -* https://github.com/bonsaiben/bootstrap-snippets (snippets for Twitter Bootstrap markup, in HTML and Haml) -* https://github.com/sniphpets (advanced snippets for PHP, Symfony 2/3, Doctrine and etc.) - -Installation using VAM: https://github.com/MarcWeber/vim-addon-manager - -Future - ideas - examples -------------------------- - -[overview snippet engines](http://vim-wiki.mawercer.de/wiki/topic/text-snippets-skeletons-templates.html) -If you have ideas you can add them to that list of "snippet engine features by example". - -Historical notes ----------------- - -[vim-snipmate][1] was originally started by [Michael Sanders][2] who has now -unfortunately abandoned the project. [Rok Garbas][3] is now maintaining a -[fork][4] of the project in hopes of improving the existing code base. - -Versions / dialects / .. -======================== - -There are some issues, such as newer language versions may require other -snippets than older. If this exists we currently recommend doing this: - -* add snippets/ruby.snippets (common snippets) -* add snippets/ruby-1.8.snippets (1.8 only) -* add snippets/ruby-1.9.snippets (1.9 only) - -then configure https://github.com/garbas/vim-snipmate this way: - -```vim -let g:snipMate = {} -let g:snipMate.scope_aliases = {} -let g:snipMate.scope_aliases['ruby'] = 'ruby,ruby-rails,ruby-1.9' -``` - -If it happens that you work on a project requiring ruby-1.8 snippets instead, -consider using `vim-addon-local-vimrc` and override the filetypes. - -Well - of course it may not make sense to create a new file for each -ruby-library-version triplet. Sometimes postfixing a name such as - -``` -migrate_lib_20_down -migrate_lib_20_up -``` - -will do it then if syntax has changed. - -Language maintainers --------------------- - -No one can really be proficient in all programming languages. If you would like -to maintain snippets for a language, please get in touch. - -Notes: People are interested in snippets - and their interest may wane again. -This list is kept up-to-date on a best effort basis. - -* Elixir - [lpil](https://github.com/lpil), [iurifq](https://github.com/iurifq) -* Falcon - [steveno](https://github.com/steveno) -* HTML Django - [honza](http://github.com/honza) -* Javascript - [honza](http://github.com/honza) -* Markdown - [honza](http://github.com/honza) -* PHP - [chrisyue](http://github.com/chrisyue) -* Python - [honza](http://github.com/honza) -* Ruby - [taq](http://github.com/taq) -* Scala - [gorodinskiy](https://github.com/gorodinskiy) -* Supercollider - [lpil](https://github.com/lpil) - -License -------- - -Just as the original snipMate plugin, all the snippets are licensed under the -terms of the MIT license. - -[1]: http://github.com/garbas/vim-snipmate -[2]: http://github.com/msanders -[3]: http://github.com/garbas -[4]: http://github.com/garbas/vim-snipmate -[7]: http://github.com/SirVer/ultisnips diff --git a/vim/snippets/vim-snippets/UltiSnips/README b/vim/snippets/vim-snippets/UltiSnips/README deleted file mode 100644 index 41d8592..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/README +++ /dev/null @@ -1,17 +0,0 @@ -This directory contains the snippets for UltiSnips. -https://github.com/sirver/ultisnips - -Standing On The Shoulders of Giants -=================================== - -The snippets have been collected from various other project which I want to -express my gratitude for. My main source for inspiration where the following -two projects: - - TextMate: http://svn.textmate.org/trunk/Bundles/ - SnipMate: http://code.google.com/p/snipmate/ - -UltiSnips has seen contributions by many individuals. Those contributions have -been merged into this collection seamlessly and without further comments. - --- vim:ft=rst:nospell: diff --git a/vim/snippets/vim-snippets/UltiSnips/ada.snippets b/vim/snippets/vim-snippets/UltiSnips/ada.snippets deleted file mode 100644 index bea2a6c..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/ada.snippets +++ /dev/null @@ -1,282 +0,0 @@ -priority -50 - -global !p - -def ada_case(word): - out = word[0].upper() - for i in range(1, len(word)): - if word[i] == '-': - out = out + '.' - elif word[i - 1] == '_' or word[i - 1] == '-': - out = out + word[i].upper() - else: - out = out + word[i] - return out - -endglobal - -snippet wi "with" -with $1;$0 -endsnippet - -snippet pac "package" -package ${1:`!p snip.rv = ada_case(snip.basename)`} is - $0 -end $1; -endsnippet - -snippet pacb "package body" -package body ${1:`!p snip.rv = ada_case(snip.basename)`} is - $0 -end $1; -endsnippet - -snippet ent "entry ... when" -entry $1($2) when $3 is -begin - $0 -end $1; -endsnippet - -snippet task "task" -task $1 is - entry $0 -end $1; -endsnippet - -snippet taskb "task body" -task body $1 is - $2 -begin - $0 -end $1; -endsnippet - -snippet acc "accept" -accept $1($2) do - $0 -end $1; -endsnippet - -snippet prot "protected type" -protected type $1($2) is - $0 -end $1; -endsnippet - -snippet prob "protected body" -protected body $1 is - $2 -begin - $0 -end $1; -endsnippet - -snippet gen "generic type" -generic - type $1 is $2;$0 -endsnippet - -snippet ty "type" -type $1 is $2;$0 -endsnippet - -snippet tyd "type with default value" -type $1 is $2 - with Default_Value => $3;$0 -endsnippet - -snippet subty "subtype" -subtype $1 is $2;$0 -endsnippet - -snippet dec "declare block" -declare - $1 -begin - $0 -end; -endsnippet - -snippet decn "declare named block" -$1: -declare - $2 -begin - $0 -end $1; -endsnippet - -snippet ifex "if expression" -if $1 then $2 else $0 -endsnippet - -snippet casex "case expression" -case $1 is - when $2 => $3,$0 -endsnippet - -snippet fora "for all" -for all $1 ${2:in} $3 => $0 -endsnippet - -snippet fors "for some" -for some $1 ${2:in} $3 => $0 -endsnippet - -snippet if "if" -if $1 then - $0 -end if; -endsnippet - -snippet ife "if ... else" -if $1 then - $2 -else - $0 -end if; -endsnippet - -snippet el "else" -else - $0 -endsnippet - -snippet eif "elsif" -elsif $1 then - $0 -endsnippet - -snippet wh "while" -while $1 loop - $0 -end loop; -endsnippet - -snippet nwh "named while" -$1: -while $2 loop - $0 -end loop $1; -endsnippet - -snippet for "for" -for ${1:I} in $2 loop - $0 -end loop; -endsnippet - -snippet fore "for each" -for $1 of $2 loop - $0 -end loop; -endsnippet - -snippet nfor "named for" -$1: -for ${2:I} in $3 loop - $0 -end loop $1; -endsnippet - -snippet nfore "named for each" -$1: -for $2 of $3 loop - $0 -end loop $1; -endsnippet - -snippet proc "procedure" -procedure $1($2) is - $3 -begin - $0 -end $1; -endsnippet - -snippet procd "procedure declaration" -procedure $1;$0 -endsnippet - -snippet fun "function" -function $1($2) return $3 is - $4 -begin - $0 -end $1; -endsnippet - -snippet fune "expression function" -function $1 return $2 is - ($3);$0 -endsnippet - -snippet fund "function declaration" -function $1 return $2;$0 -endsnippet - -snippet ret "extended return" -return $1 do - $0 -end return; -endsnippet - -snippet rec "record" -record - $0 -end record; -endsnippet - -snippet case "case" -case $1 is - when $2 => $3;$0 -end case; -endsnippet - -snippet whe "when" -when $1 => $2;$0 -endsnippet - -snippet wheo "when others" -when others => $1;$0 -endsnippet - -snippet lo "loop" -loop - $0 -end loop; -endsnippet - -snippet nlo "named loop" -$1: -loop - $0 -end loop $1; -endsnippet - -snippet ex "exit when" -exit when $1;$0 -endsnippet - -snippet put "Ada.Text_IO.Put" -Ada.Text_IO.Put($1);$0 -endsnippet - -snippet putl "Ada.Text_IO.Put_Line" -Ada.Text_IO.Put_Line($1);$0 -endsnippet - -snippet get "Ada.Text_IO.Get" -Ada.Text_IO.Get($1);$0 -endsnippet - -snippet getl "Ada.Text_IO.Get_Line" -Ada.Text_IO.Get_Line($1);$0 -endsnippet - -snippet newline "Ada.Text_IO.New_Line" -Ada.Text_IO.New_Line(${1:1});$0 -endsnippet - -# vim:ft=snippets: diff --git a/vim/snippets/vim-snippets/UltiSnips/all.snippets b/vim/snippets/vim-snippets/UltiSnips/all.snippets deleted file mode 100644 index 6d77cc5..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/all.snippets +++ /dev/null @@ -1,103 +0,0 @@ -# This file contains snippets that are always defined. I personally -# have snippets for signatures and often needed texts - -# sligthly lower priority than everything else since specialized versions -# should overwrite. The user needs to adjust her priority in her snippets to -# ~-55 so that other filetypes will still overwrite. -priority -60 - -############## -# NICE BOXES # -############## -global !p -from vimsnippets import foldmarker, make_box, get_comment_format -endglobal - -snippet box "A nice box with the current comment symbol" b -`!p -box = make_box(len(t[1])) -snip.rv = box[0] -snip += box[1] -`${1:${VISUAL:content}}`!p -box = make_box(len(t[1])) -snip.rv = box[2] -snip += box[3]` -$0 -endsnippet - -snippet bbox "A nice box over the full width" b -`!p -if not snip.c: - width = int(vim.eval("&textwidth - (virtcol('.') == 1 ? 0 : virtcol('.'))")) or 71 -box = make_box(len(t[1]), width) -snip.rv = box[0] -snip += box[1] -`${1:${VISUAL:content}}`!p -box = make_box(len(t[1]), width) -snip.rv = box[2] -snip += box[3]` -$0 -endsnippet - -snippet fold "Insert a vim fold marker" b -`!p snip.rv = get_comment_format()[0]` ${1:Fold description} `!p snip.rv = foldmarker()[0]`${2:1} `!p snip.rv = get_comment_format()[2]` -endsnippet - -snippet foldc "Insert a vim fold close marker" b -`!p snip.rv = get_comment_format()[0]` ${2:1}`!p snip.rv = foldmarker()[1]` `!p snip.rv = get_comment_format()[2]` -endsnippet - -snippet foldp "Insert a vim fold marker pair" b -`!p snip.rv = get_comment_format()[0]` ${1:Fold description} `!p snip.rv = foldmarker()[0]` `!p snip.rv = get_comment_format()[2]` -${2:${VISUAL:Content}} -`!p snip.rv = get_comment_format()[0]` `!p snip.rv = foldmarker()[1]` $1 `!p snip.rv = get_comment_format()[2]` -endsnippet - -########################## -# LOREM IPSUM GENERATORS # -########################## -snippet lorem "Lorem Ipsum - 50 Words" b -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod -tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At -vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, -no sea takimata sanctus est Lorem ipsum dolor sit amet. -endsnippet - -########################## -# VIM MODELINE GENERATOR # -########################## -# See advice on `:help 'tabstop'` for why these values are set. Uses second -# modeline form ('set') to work in languages with comment terminators -# (/* like C */). -snippet modeline "Vim modeline" -vim`!v ':set '. (&expandtab ? printf('et sw=%i ts=%i', &sw, &ts) : printf('noet sts=%i sw=%i ts=%i', &sts, &sw, &ts)) . (&tw ? ' tw='. &tw : '') . ':'` -endsnippet - -######### -# DATES # -######### -snippet date "YYYY-MM-DD" w -`!v strftime("%F")` -endsnippet - -snippet ddate "Month DD, YYYY" w -`!v strftime("%b %d, %Y")` -endsnippet - -snippet diso "ISO format datetime" w -`!v strftime("%F %H:%M:%S%z")` -endsnippet - -snippet time "hh:mm" w -`!v strftime("%H:%M")` -endsnippet - -snippet datetime "YYYY-MM-DD hh:mm" w -`!v strftime("%Y-%m-%d %H:%M")` -endsnippet - -snippet todo "TODO comment" bw -`!p snip.rv=get_comment_format()[0]` ${2:TODO}: $0${3: <${4:`!v strftime('%d-%m-%y')`}${5:, `!v g:snips_author`}>} `!p snip.rv=get_comment_format()[2]` -endsnippet - -# vim:ft=snippets: diff --git a/vim/snippets/vim-snippets/UltiSnips/bib.snippets b/vim/snippets/vim-snippets/UltiSnips/bib.snippets deleted file mode 100644 index c9b8df5..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/bib.snippets +++ /dev/null @@ -1,52 +0,0 @@ -priority -50 - -snippet online "Online resource" b -@online{${1:name}, - author={${2:author}}, - title={${3:title}}, - date={${4:date}}, - url={${5:url}} -} -$0 -endsnippet - -snippet article "Article reference" b -@article{${1:name}, - author={${2:author}}, - title={${3:title}}, - journaltitle={${4:journal}}, - volume={${5:NN}}, - number={${6:NN}}, - year={${7:YYYY}}, - pages={${8:NN}--${9:NN}} -} -$0 -endsnippet - -snippet book "Book reference" b -@book{${1:name}, - author={${2:author}}, - title={${3:title}}, - subtitle={${4:subtitle}}, - year={${5:YYYY}}, - location={${6:somewhere}}, - publisher={${7:publisher}}, - pages={${8:NN}--${9:NN}} -} -$0 -endsnippet - -snippet inb "In Book reference" b -@inbook{${1:name}, - author={${2:author}}, - title={${3:title}}, - subtitle={${4:subtitle}}, - booktitle={${5:book}}, - editor={${6:editor}}, - year={${7:YYYY}}, - location={${8:somewhere}}, - publisher={${9:publisher}}, - pages={${10:NN}--${11:NN}} -} -$0 -endsnippet diff --git a/vim/snippets/vim-snippets/UltiSnips/bindzone.snippets b/vim/snippets/vim-snippets/UltiSnips/bindzone.snippets deleted file mode 100644 index b8ab0df..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/bindzone.snippets +++ /dev/null @@ -1,29 +0,0 @@ -priority -50 - -global !p -def newsoa(): - import datetime - now = datetime.datetime.now() - # return standard SOA formatted serial for today - return now.strftime("%Y%m%d00") -endglobal - -snippet zone "Bootstrap a new Bind zonefile" b -$TTL 86400 -@ IN SOA ${1:example.net}. ${2:hostmaster.$1}.( - `!p snip.rv = newsoa()`; serial - 21600; refresh every 6 hours - 3600; retry after one hour - 604800; expire after a week - 86400 ); minimum TTL of 1 day - - IN NS ns01.$1. - IN MX 10 mail.$1. - -ns01.$1 IN A -mail.$1 IN A -endsnippet - -snippet A "Insert A Record" b -${1:hostname} IN A ${2:ip} -endsnippet diff --git a/vim/snippets/vim-snippets/UltiSnips/blade.snippets b/vim/snippets/vim-snippets/UltiSnips/blade.snippets deleted file mode 100644 index 6a9c45f..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/blade.snippets +++ /dev/null @@ -1,135 +0,0 @@ -priority -50 - -extends html - -# We want to overwrite everything in parent ft. -priority -49 - -snippet break "@break" -@break -endsnippet - -snippet component "@component directive" -@component('$1') - ${2:${VISUAL}} -@endcomponent -endsnippet - -snippet each "@each directive" -@each('$1', $$2, '$3') -endsnippet - -snippet else "@else directive" -@else -endsnippet - -snippet eif "@else if directive" -@else if ($1) - ${2:${VISUAL}} -endsnippet - -snippet for "@for directive" -@for ($1) - ${2:${VISUAL}} -@endfor -endsnippet - -snippet foreach "@foreach directive" -@foreach ($$1 as $$2) - ${3:${VISUAL}} -@endforeach -endsnippet - -snippet extends "@extends directive" -@extends('$1') -endsnippet - -snippet if "@if directive" -@if ($1) - ${2:${VISUAL}} -@endif -endsnippet - -snippet ife "@if @else structure" -@if ($1) - ${2:${VISUAL}} -@else - ${3:${VISUAL}} -@endif -endsnippet - -snippet include "@include directive" -@include('$1') -endsnippet - -snippet includeIf "@includeIf directive" -@includeIf('$1') -endsnippet - -snippet isset "@isset directive" -@isset - ${1:${VISUAL}} -@endisset -endsnippet - -snippet inject "@inject directive" -@inject('$1', '$2') -endsnippet - -snippet php "@php directive" -@php - ${1:${VISUAL}} -@endphp -endsnippet - -snippet push "@push directive" -@push('$1') - ${2:${VISUAL}} -@endpush -endsnippet - -snippet section "@section directive" -@section('$1') -endsnippet - -snippet show "@show directive" -@show -endsnippet - -snippet slot "@slot directive" -@slot('$1') - ${2:${VISUAL}} -@endslot -endsnippet - -snippet unless "@unless directive" -@unless - ${1:${VISUAL}} -@endunless -endsnippet - -snippet verbatim "@verbatim directive" -@verbatim - ${0:$VISUAL} -@endverbatim -endsnippet - -snippet wh "@while directive" -@while ($1) - ${2:${VISUAL}} -@endwhile -endsnippet - -snippet yield "@yield directive" -@yield('$1') -endsnippet - -snippet { "{{ }} statement." i -{{ $1 }} -endsnippet - -snippet {! "{!! !!} statement" i -{!! $1 !!} -endsnippet - -# vim:ft=snippets: diff --git a/vim/snippets/vim-snippets/UltiSnips/c.snippets b/vim/snippets/vim-snippets/UltiSnips/c.snippets deleted file mode 100644 index 6851a27..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/c.snippets +++ /dev/null @@ -1,99 +0,0 @@ -########################################################################### -# TextMate Snippets # -########################################################################### - -priority -50 - -snippet def "#define ..." -#define $1 -endsnippet - -snippet #ifndef "#ifndef ... #define ... #endif" -#ifndef ${1/([A-Za-z0-9_]+).*/$1/} -#define ${1:SYMBOL} ${2:value} -#endif /* ifndef $1 */ -endsnippet - -snippet #if "#if #endif" b -#if ${1:0} -${VISUAL}$0 -#endif -endsnippet - -snippet mark "#pragma mark (mark)" -#if 0 -${1:#pragma mark - -}#pragma mark $2 -#endif - -$0 -endsnippet - -snippet main "main() (main)" -int main(int argc, char *argv[]) -{ - ${VISUAL}$0 - return 0; -} -endsnippet - -snippet for "for loop (for)" -for (${2:i} = 0; $2 < ${1:count}; ${3:++$2}) { - ${VISUAL}$0 -} -endsnippet - -snippet fori "for int loop (fori)" -for (${4:int} ${2:i} = 0; $2 < ${1:count}; ${3:++$2}) { - ${VISUAL}$0 -} -endsnippet - -snippet once "Include header once only guard" -#ifndef ${1:`!p -if not snip.c: - import random, string - name = re.sub(r'[^A-Za-z0-9]+','_', snip.fn).upper() - rand = ''.join(random.sample(string.ascii_letters+string.digits, 8)) - snip.rv = ('%s_%s' % (name,rand)).upper() -else: - snip.rv = snip.c`} -#define $1 - -${VISUAL}$0 - -#endif /* end of include guard: $1 */ -endsnippet - -snippet fprintf "fprintf ..." -fprintf(${1:stderr}, "${2:%s}\n"${2/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$3${2/([^%]|%%)*(%.)?.*/(?2:\);)/} -endsnippet - -snippet eli "else if .. (eli)" -else if (${1:/* condition */}) { - ${VISUAL}$0 -} -endsnippet - -snippet printf "printf .. (printf)" -printf("${1:%s}\n"${1/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$2${1/([^%]|%%)*(%.)?.*/(?2:\);)/} -endsnippet - -snippet st "struct" -struct ${1:`!p snip.rv = (snip.basename or "name") + "_t"`} { - ${0:/* data */} -}; -endsnippet - -snippet fun "function" b -${1:void} ${2:function_name}($3) -{ - ${VISUAL}$0 -} -endsnippet - -snippet fund "function declaration" b -${1:void} ${2:function_name}($3); -endsnippet - -# vim:ft=snippets: diff --git a/vim/snippets/vim-snippets/UltiSnips/coffee-jasmine.snippets b/vim/snippets/vim-snippets/UltiSnips/coffee-jasmine.snippets deleted file mode 100644 index 0dd35cd..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/coffee-jasmine.snippets +++ /dev/null @@ -1,166 +0,0 @@ -# -# CoffeeScript versions -- adapted from the JS TextMate bundle + additions -# for some jasmine-jquery matchers -# -priority -50 - -extends coffee - -priority -49 - -snippet des "Describe (coffee)" b -describe '${1:description}', -> - $0 -endsnippet - -snippet it "it (coffee)" b -it '${1:description}', -> - $0 -endsnippet - -snippet bef "before each (coffee)" b -beforeEach -> - $0 -endsnippet - -snippet aft "after each (coffee)" b -afterEach -> - $0 -endsnippet - -snippet any "any (coffee)" b -jasmine.any($1) -endsnippet - -snippet ru "runs (coffee)" b -runs -> - $0 -endsnippet - -snippet wa "waits (coffee)" b -waits($1) -endsnippet - -snippet ex "expect (coffee)" b -expect(${1:target})$0 -endsnippet - -snippet ee "expect to equal (coffee)" b -expect(${1:target}).toEqual(${2:value}) -endsnippet - -snippet em "expect to match (coffee)" b -expect(${1:target}).toMatch(${2:pattern}) -endsnippet - -snippet eha "expect to have attribute (coffee)" b -expect(${1:target}).toHaveAttr('${2:attr}'${3:, '${4:value}'}) -endsnippet - -snippet et "expect to be truthy (coffee)" b -expect(${1:target}).toBeTruthy() -endsnippet - -snippet ef "expect to be falsy (coffee)" b -expect(${1:target}).toBeFalsy() -endsnippet - -snippet ed "expect to be defined (coffee)" b -expect(${1:target}).toBeDefined() -endsnippet - -snippet en "expect to be null (coffee)" b -expect(${1:target}).toBeNull() -endsnippet - -snippet ec "expect to contain (coffee)" b -expect(${1:target}).toContain(${2:value}) -endsnippet - -snippet ev "expect to be visible (coffee)" b -expect(${1:target}).toBeVisible() -endsnippet - -snippet eh "expect to be hidden (coffee)" b -expect(${1:target}).toBeHidden() -endsnippet - -snippet notx "expect not (coffee)" b -expect(${1:target}).not$0 -endsnippet - -snippet note "expect not to equal (coffee)" b -expect(${1:target}).not.toEqual(${2:value}) -endsnippet - -snippet notm "expect not to match (coffee)" b -expect(${1:target}).not.toMatch(${2:pattern}) -endsnippet - -snippet notha "expect to not have attribute (coffee)" b -expect(${1:target}).not.toHaveAttr('${2:attr}'${3:, '${4:value}'}) -endsnippet - -snippet nott "expect not to be truthy (coffee)" b -expect(${1:target}).not.toBeTruthy() -endsnippet - -snippet notf "expect not to be falsy (coffee)" b -expect(${1:target}).not.toBeFalsy() -endsnippet - -snippet notd "expect not to be defined (coffee)" b -expect(${1:target}).not.toBeDefined() -endsnippet - -snippet notn "expect not to be null (coffee)" b -expect(${1:target}).not.toBeNull() -endsnippet - -snippet notc "expect not to contain (coffee)" b -expect(${1:target}).not.toContain(${2:value}) -endsnippet - -snippet notv "expect not to be visible (coffee)" b -expect(${1:target}).not.toBeVisible() -endsnippet - -snippet noth "expect not to be hidden (coffee)" b -expect(${1:target}).not.toBeHidden() -endsnippet - -snippet s "spy on (coffee)" b -spyOn(${1:object}, "${2:method}")$0 -endsnippet - -snippet sr "spy on and return (coffee)" b -spyOn(${1:object}, "${2:method}").andReturn(${3:arguments}) -endsnippet - -snippet st "spy on and throw (coffee)" b -spyOn(${1:object}, "${2:method}").andThrow(${3:exception}) -endsnippet - -snippet sct "spy on and call through (coffee)" b -spyOn(${1:object}, "${2:method}").andCallThrough() -endsnippet - -snippet scf "spy on and call fake (coffee)" b -spyOn(${1:object}, "${2:method}").andCallFake(${3:function}) -endsnippet - -snippet esc "expect was called (coffee)" b -expect(${1:target}).wasCalled() -endsnippet - -snippet escw "expect was called with (coffee)" b -expect(${1:target}).wasCalledWith(${2:arguments}) -endsnippet - -snippet notsc "expect was not called (coffee)" b -expect(${1:target}).wasNotCalled() -endsnippet - -snippet noscw "expect was not called with (coffee)" b -expect(${1:target}).wasNotCalledWith(${2:arguments}) -endsnippet diff --git a/vim/snippets/vim-snippets/UltiSnips/coffee-react.snippets b/vim/snippets/vim-snippets/UltiSnips/coffee-react.snippets deleted file mode 100644 index 3090c57..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/coffee-react.snippets +++ /dev/null @@ -1,80 +0,0 @@ -# -# CoffeeScript versions -- adapted from coffee-jasmine -# for some ReactJS matchers. -# -priority -50 - -extends coffee - -priority -49 - -snippet createClass "React define Class" b -${1:classname}Class = React.createClass - displayName: "$1" - render: -> - $2 -$1 = React.createFactory($1) -endsnippet - -snippet PropTypes "React define propTypes" b -propTypes: -> - ${1:myVar}: React.PropTypes.${2:type}${3:.isRequired} -endsnippet - -snippet propType "React propType (key/value)" b -${1:myVar}: React.PropTypes.${2:type}${3:.isRequired} -$4 -endsnippet - -snippet setState "React setState" b -@setState - ${1:myvar}: ${2:myvalue} - $3 -endsnippet - -snippet getInitialState "React define getInitialState" b -getInitialState: -> - ${1:myvar}: ${2:myvalue} - $3 -endsnippet - -snippet getDefaultProps "React define getDefaultProps" b -getDefaultProps: -> - ${1:myvar}: ${2:myvalue} - $3 -endsnippet - -snippet componentWillMount "React define componentWillMount" b -componentWillMount: -> - $1 -endsnippet - -snippet componentDidMount "React define componentDidMount" b -componentDidMount: -> - $1 -endsnippet - -snippet componentWillReceiveProps "React define componentWillReceiveProps" b -componentWillReceiveProps: (nextProps) -> - $1 -endsnippet - -snippet shouldComponentUpdate "React define shouldComponentUpdate" b -shouldComponentUpdate: (nextProps, nextState) -> - $1 -endsnippet - -snippet componentWillUpdate "React define componentWillUpdate" b -componentWillUpdate: (nextProps, nextState) -> - $1 -endsnippet - -snippet componentDidUpdate "React define componentDidUpdate" b -componentDidUpdate: (prevProps, prevState) -> - $1 -endsnippet - -snippet componentWillUnmount "React define componentWillUnmount" b -componentWillUnmount: -> - $1 -endsnippet diff --git a/vim/snippets/vim-snippets/UltiSnips/coffee.snippets b/vim/snippets/vim-snippets/UltiSnips/coffee.snippets deleted file mode 100644 index 75e7d06..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/coffee.snippets +++ /dev/null @@ -1,100 +0,0 @@ -priority -50 - -snippet fun "Function" b -${1:name} = `!p snip.rv = "(" if t[2] else ""`${2:args}`!p snip.rv = ") " if t[2] else ""`-> - ${0:# body...} -endsnippet - -snippet bfun "Function (bound)" i -`!p snip.rv = "(" if t[1] else ""`${1:args}`!p snip.rv = ") " if t[1] else ""`=>`!p snip.rv = " " if t[2] and not t[2].startswith("\n") else ""`${2:expr} -endsnippet - -snippet if "If" b -if ${1:condition} - ${0:# body...} -endsnippet - -snippet ife "If .. Else" b -if ${1:condition} - ${2:# body...} -else - ${3:# body...} -endsnippet - -snippet elif "Else if" b -else if ${1:condition} - ${0:# body...} -endsnippet - -snippet ifte "Ternary if" b -if ${1:condition} then ${2:value} else ${3:other} -endsnippet - -snippet unl "Unless" b -${1:action} unless ${2:condition} -endsnippet - -snippet fora "Array Comprehension" b -for ${1:name} in ${2:array} - ${0:# body...} -endsnippet - -snippet foro "Object Comprehension" b -for ${1:key}, ${2:value} of ${3:Object} - ${0:# body...} -endsnippet - -snippet forr "Range Comprehension (inclusive)" b -for ${1:name} in [${2:start}..${3:finish}]`!p snip.rv = " by " if t[4] else ""`${4:step} - ${0:# body...} -endsnippet - -snippet forrex "Range Comprehension (exclusive)" b -for ${1:name} in [${2:start}...${3:finish}]`!p snip.rv = " by " if t[4] else ""`${4:step} - ${0:# body...} -endsnippet - -snippet swi "Switch" b -switch ${1:object} - when ${2:value} - ${3:# body...} - else - $0 -endsnippet - -snippet swit "Switch when .. then" b -switch ${1:object} - when ${2:condition}`!p snip.rv = " then " if t[3] else ""`${3:value} - else`!p snip.rv = " " if t[4] and not t[4].startswith("\n") else ""`${4:value} -endsnippet - -snippet cla "Class" b -class ${1:ClassName}`!p snip.rv = " extends " if t[2] else ""`${2:Ancestor} - - ${3:constructor:`!p snip.rv = " (" if t[4] else ""`${4:args}`!p snip.rv = ")" if t[4] else ""` -> - ${5:# body...}} - $0 -endsnippet - -snippet try "Try .. Catch" b -try - $1 -catch ${2:error} - $3 -endsnippet - -snippet req "Require" b -${1/^'?(\w+)'?$/\L$1\E/} = require(${1:'${2:sys}'}) -endsnippet - -snippet # "Interpolated Code" i -#{$1}$0 -endsnippet - -snippet log "Log" b -console.log ${1:"${2:msg}"} -endsnippet - -snippet kv "Key:value for object" b -${1:key}:${2:value} -endsnippet diff --git a/vim/snippets/vim-snippets/UltiSnips/cpp.snippets b/vim/snippets/vim-snippets/UltiSnips/cpp.snippets deleted file mode 100644 index bb79a0e..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/cpp.snippets +++ /dev/null @@ -1,110 +0,0 @@ -priority -50 - -extends c - -# We want to overwrite everything in parent ft. -priority -49 -########################################################################### -# Global functions # -########################################################################### - -global !p - -def write_docstring_args(arglist, snip): - args = str(arglist).split(',') - - if len(args) > 1: - c = 0 - for arg in args: - if c == 0: - snip.rv += arg - c = 1 - else: - snip += '* : %s' % arg.strip() - else: - snip.rv = args[0] - - -endglobal - -########################################################################### -# TextMate Snippets # -########################################################################### -snippet beginend "$1.begin(), $1.end() (beginend)" -${1:v}${1/^.*?(-)?(>)?$/(?2::(?1:>:.))/}begin(), $1${1/^.*?(-)?(>)?$/(?2::(?1:>:.))/}end() -endsnippet - -snippet cl "class .. (class)" -class ${1:`!p snip.rv = snip.basename or "name"`} -{ -public: - ${1/(\w+).*/$1/} (${2:arguments}); - virtual ~${1/(\w+).*/$1/} (); - -private: - ${0:/* data */} -}; -endsnippet - -snippet ns "namespace .. (namespace)" -namespace${1/.+/ /m}${1:`!p snip.rv = snip.basename or "name"`} -{ - ${VISUAL}$0 -}${1/.+/ \/* /m}$1${1/.+/ *\/ /m} -endsnippet - -snippet readfile "read file (readF)" -std::vector v; -if (FILE *fp = fopen(${1:"filename"}, "r")) -{ - char buf[1024]; - while(size_t len = fread(buf, 1, sizeof(buf), fp)) - v.insert(v.end(), buf, buf + len); - fclose(fp); -} -endsnippet - -snippet map "std::map (map)" -std::map<${1:key}, ${2:value}> map$0; -endsnippet - -snippet vector "std::vector (v)" -std::vector<${1:char}> v$0; -endsnippet - -snippet tp "template (template)" -template -endsnippet - -snippet cla "An entire .h generator" b -#ifndef ${2:`!v substitute(vim_snippets#Filename('$1_H','ClassName'),'.*','\U&\E','')`} -#define $2 - -class ${1:`!v substitute(substitute(vim_snippets#Filename('$1','ClassName'),'^.','\u&',''), '_\(\w\)', '\u\1', 'g')`} -{ -private: - $3 - -public: - $1(); - virtual ~$1(); -}; - -#endif /* $2 */ -endsnippet - - -snippet fnc "Basic c++ doxygen function template" b -/** -* @brief: ${4:brief} -* -* @param: `!p write_docstring_args(t[3],snip)` -* -* @return: `!p snip.rv = t[1]` -*/ -${1:ReturnType} ${2:FunctionName}(${3:param}) -{ - ${0:FunctionBody} -} -endsnippet -# vim:ft=snippets: diff --git a/vim/snippets/vim-snippets/UltiSnips/crystal.snippets b/vim/snippets/vim-snippets/UltiSnips/crystal.snippets deleted file mode 100644 index cab946f..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/crystal.snippets +++ /dev/null @@ -1,13 +0,0 @@ -priority -50 - -snippet "\b(de)?f" "def ..." r -def ${1:method_name}${2:(${3:*args})} - $0 -end -endsnippet - -snippet "\b(pde)?f" "private def ..." r -private def ${1:method_name}${2:(${3:*args})} - $0 -end -endsnippet diff --git a/vim/snippets/vim-snippets/UltiSnips/cs.snippets b/vim/snippets/vim-snippets/UltiSnips/cs.snippets deleted file mode 100644 index af247c5..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/cs.snippets +++ /dev/null @@ -1,372 +0,0 @@ -####################################################################### -# C# Snippets for UltiSnips # -####################################################################### - -priority -50 - -######################### -# classes and structs # -######################### - -snippet namespace "namespace" b -namespace ${1:MyNamespace} -{ - ${VISUAL}$0 -} -endsnippet - -snippet class "class" w -${1:public} class ${2:MyClass} -{ - $0 -} -endsnippet - -snippet struct "struct" w -struct ${1:MyStruct} -{ - $0 -} -endsnippet - -snippet interface "interface" w -interface I${1:Interface} -{ - $0 -} -endsnippet - -snippet enum "enumeration" b -enum ${1:MyEnum} { ${2:Item} }; -endsnippet - - -############ -# Main() # -############ - -snippet sim "static int main" b -static int Main(string[] args) -{ - $0 -} -endsnippet - -snippet svm "static void main" b -static void Main(string[] args) -{ - $0 -} -endsnippet - - -################ -# properties # -################ - -snippet prop "Simple property declaration" b -public ${1:int} ${2:MyProperty} { get; set; } -endsnippet - -snippet propfull "Full property declaration" b -private ${1:int} ${2:_myProperty}; - -public $1 ${3:MyProperty} -{ - get { return $2; } - set { $2 = value; } -} -endsnippet - -snippet propg "Property with a private setter" b -public ${1:int} ${2:MyProperty} { get; private set; } -endsnippet - - -############ -# blocks # -############ - -snippet #if "#if #endif" b -#if ${1:DEBUG} -${VISUAL}$0 -#endif -endsnippet - -snippet #region "#region #endregion" b -#region ${1:Region} -${VISUAL}$0 -#endregion -endsnippet - - -########### -# loops # -########### - -snippet for "for loop" b -for (int ${1:i} = 0; $1 < ${2:10}; $1++) -{ - ${VISUAL}$0 -} -endsnippet - -snippet forr "for loop (reverse)" b -for (int ${1:i} = ${2:10}; $1 >= 0; $1--) -{ - ${VISUAL}$0 -} -endsnippet - -snippet foreach "foreach loop" b -foreach (${3:var} ${2:item} in ${1:items}) -{ - ${VISUAL}$0 -} -endsnippet - -snippet while "while loop" b -while (${1:true}) -{ - ${VISUAL}$0 -} -endsnippet - -snippet do "do loop" b -do -{ - ${VISUAL}$0 -} while (${1:true}); -endsnippet - - -############### -# branching # -############### - -snippet if "if statement" b -if ($1) -{ - ${VISUAL}$0 -} -endsnippet - -snippet ife "if else statement" b -if ($1) -{ - ${VISUAL}$0 -} -else -{ -} -endsnippet - -snippet elif "else if" b -else if ($1) -{ - $0 -} -endsnippet - -snippet elseif "else if" b -else if ($1) -{ - $0 -} -endsnippet - -snippet ifnn "if not null" b -if ($1 != null) -{ - ${VISUAL}$0 -} -endsnippet - -snippet switch "switch statement" b -switch (${1:statement}) -{ - case ${2:value}: - break; - - default: - $0break; -} -endsnippet - -snippet case "case" b -case ${1:value}: - $2 - break; -endsnippet - - -############## -# wrappers # -############## - -snippet using "using statement" b -using (${1:resource}) -{ - ${VISUAL}$0 -} -endsnippet - -snippet unchecked "unchecked block" b -unchecked -{ - ${VISUAL}$0 -} -endsnippet - -snippet checked "checked block" b -checked -{ - ${VISUAL}$0 -} -endsnippet - -snippet unsafe "unsafe" b -unsafe -{ - ${VISUAL}$0 -} -endsnippet - - -######################## -# exception handling # -######################## - -snippet try "try catch block" b -try -{ - ${VISUAL}$0 -} -catch (${1:Exception} ${2:e}) -{ - throw; -} -endsnippet - -snippet tryf "try finally block" b -try -{ - ${VISUAL}$0 -} -finally -{ -} -endsnippet - -snippet throw "throw" -throw new $1Exception("$2"); -endsnippet - - -########## -# LINQ # -########## - -snippet from "LINQ syntax" b -var ${1:seq} = - from ${2:item1} in ${3:items1} - join ${4:item2} in ${5:items2} on $2.${6:prop1} equals $4.${7:prop2} - select ${8:$2.prop3} - where ${9:clause} -endsnippet - - -############################ -# feedback and debugging # -############################ - -snippet da "Debug.Assert" b -Debug.Assert(${1:true}); -endsnippet - -snippet cw "Console.WriteLine" b -Console.WriteLine("$1"); -endsnippet - -snippet cr "Console.ReadLine" b -Console.ReadLine(); -endsnippet - -# as you first type comma-separated parameters on the right, {n} values appear in the format string -snippet cwp "Console.WriteLine with parameters" b -Console.WriteLine("${2:`!p -snip.rv = ' '.join(['{' + str(i) + '}' for i in range(t[1].count(','))]) -`}"${1:, something}); -endsnippet - -snippet mbox "Message box" b -MessageBox.Show("${1:message}"); -endsnippet - - -############# -# methods # -############# - -snippet equals "Equals method" b -public override bool Equals(object obj) -{ - if (obj == null || GetType() != obj.GetType()) - { - return false; - } - $0 - return base.Equals(obj); -} -endsnippet - -snippet mth "Method" b -${1:public} ${2:void} ${3:MyMethod}(${4}) -{ - $0 -} -endsnippet - -snippet mths "Static method" b -${1:public} static ${2:void} ${3:MyMethod}(${4}) -{ - $0 -} -endsnippet - -############### -# constructor # -############### - -snippet ctor "Constructor" b -${1:public} ${2:`!p snip.rv = snip.basename or "untitled"`}(${3}) -{ - $0 -} -endsnippet - -############## -# comments # -############## - -snippet /// "XML summary comment" b -/// -/// $0 -/// -endsnippet - -snippet

    ${2} -endsnippet - -snippet ${2} -endsnippet - -snippet $0 -endsnippet - -snippet $0 -endsnippet diff --git a/vim/snippets/vim-snippets/UltiSnips/css.snippets b/vim/snippets/vim-snippets/UltiSnips/css.snippets deleted file mode 100644 index f5ccd2f..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/css.snippets +++ /dev/null @@ -1,493 +0,0 @@ -priority -50 - -snippet p "padding" -padding: ${1:0};$0 -endsnippet - -snippet m "margin" -margin: ${1:0};$0 -endsnippet - -snippet bd "border" -border: ${1:0};$0 -endsnippet - -snippet d "display" -display: ${1:none};$0 -endsnippet - -snippet bg "background" -background: ${1:none};$0 -endsnippet - -snippet ff "font-family" -font-family: ${1:"Helvetica Neue", Helvetica, Arial, sans-serif};$0 -endsnippet - -snippet h "height" -height: ${1:auto};$0 -endsnippet - -snippet w "width" -width: ${1:auto};$0 -endsnippet - -snippet pos "position" -position: ${1:relative};$0 -endsnippet - -snippet tt "text-transform" -text-transform: ${1:none};$0 -endsnippet - -snippet ! "!important CSS (!)" -!important -endsnippet - -snippet tsh "text-shadow: color-hex x y blur (text)" -text-shadow: ${1:${2:color} ${3:offset-x} ${4:offset-y} ${5:blur}};$0 -endsnippet - -snippet bxsh "box-shadow: color-hex x y blur (text)" -box-shadow: ${1:${2:offset-x} ${3:offset-y} ${4:blur} ${5:spread} ${6:color}};$0 -endsnippet - -# -# Colors -# - -snippet rgb "color rgb" -rgb(${1:255}, ${2:255}, ${3:255})$0 -endsnippet - -snippet rgba "color rgba" -rgba(${1:255}, ${2:255}, ${3:255}, ${4:0.5})$0 -endsnippet - -snippet hsl "color hsl" -hsl(${1:360}, ${2:100}%, ${3:100}%)$0 -endsnippet - -snippet hsla "color hsla" -hsla(${1:360}, ${2:100}%, ${3:100}%, ${4:0.5})$0 -endsnippet - -# -# Selectors -# - -snippet :fc -:first-child -endsnippet - -snippet :lc -:last-child -endsnippet - -snippet :nc -:nth-child($0) -endsnippet - -snippet :nlc -:nth-last-child($0) -endsnippet - -snippet :oc -:only-child -endsnippet - -# -# Pseudo-elements -# - -snippet :a -:after -endsnippet - -snippet :b -:before -endsnippet - -snippet ::a -::after -endsnippet - -snippet ::b -::before -endsnippet - -########################################################################### -# Most of these came from TextMate # -########################################################################### - -snippet background "background-attachment: scroll:fixed (background)" -background-attachment: ${1:scroll/fixed};$0 -endsnippet - -snippet background "background-color: color-hex (background)" -background-color: #${1:DDD};$0 -endsnippet - -snippet background "background-color: color-name (background)" -background-color: ${1:red};$0 -endsnippet - -snippet background "background-color: color-rgb (background)" -background-color: rgb(${1:255},${2:255},${3:255});$0 -endsnippet - -snippet background "background-color: transparent (background)" -background-color: transparent;$0 -endsnippet - -snippet background "background-image: none (background)" -background-image: none;$0 -endsnippet - -snippet background "background-image: url (background)" -background-image: url($1);$0 -endsnippet - -snippet background "background-position: position (background)" -background-position: ${1:top left/top center/top right/center left/center center/center right/bottom left/bottom center/bottom right/x-% y-%/x-pos y-pos};$0 -endsnippet - -snippet background "background-repeat: r:r-x:r-y:n-r (background)" -background-repeat: ${1:repeat/repeat-x/repeat-y/no-repeat};$0 -endsnippet - -snippet background "background: color image repeat attachment position (background)" -background:${6: #${1:DDD}} url($2) ${3:repeat/repeat-x/repeat-y/no-repeat} ${4:scroll/fixed} ${5:top left/top center/top right/center left/center center/center right/bottom left/bottom center/bottom right/x-% y-%/x-pos y-pos};$0 -endsnippet - -snippet border "border-bottom-color: size style color (border)" -border-bottom-color: #${1:999};$0 -endsnippet - -snippet border "border-bottom-style: size style color (border)" -border-bottom-style: ${1:none/hidden/dotted/dashed/solid/double/groove/ridge/inset/outset};$0 -endsnippet - -snippet border "border-bottom-width: size style color (border)" -border-bottom-width: ${1:1}px ${2:solid} #${3:999};$0 -endsnippet - -snippet border "border-bottom: size style color (border)" -border-bottom: ${1:1}px ${2:solid} #${3:999};$0 -endsnippet - -snippet border "border-color: color (border)" -border-color: ${1:999};$0 -endsnippet - -snippet border "border-left-color: color (border)" -border-right-color: #${1:999};$0 -endsnippet - -snippet border "border-left-style: style (border)" -border-left-style: ${1:none/hidden/dotted/dashed/solid/double/groove/ridge/inset/outset};$0 -endsnippet - -snippet border "border-left-width: size (border)" -border-left-width: ${1:1}px -endsnippet - -snippet border "border-left: size style color (border)" -border-left: ${1:1}px ${2:solid} #${3:999};$0 -endsnippet - -snippet border "border-right-color: color (border)" -border-right-color: #${1:999};$0 -endsnippet - -snippet border "border-right-style: style (border)" -border-right-style: ${1:none/hidden/dotted/dashed/solid/double/groove/ridge/inset/outset};$0 -endsnippet - -snippet border "border-right-width: size (border)" -border-right-width: ${1:1}px -endsnippet - -snippet border "border-right: size style color (border)" -border-right: ${1:1}px ${2:solid} #${3:999};$0 -endsnippet - -snippet border "border-style: style (border)" -border-style: ${1:none/hidden/dotted/dashed/solid/double/groove/ridge/inset/outset};$0 -endsnippet - -snippet border "border-top-color: color (border)" -border-top-color: #${1:999};$0 -endsnippet - -snippet border "border-top-style: style (border)" -border-top-style: ${1:none/hidden/dotted/dashed/solid/double/groove/ridge/inset/outset};$0 -endsnippet - -snippet border "border-top-width: size (border)" -border-top-width: ${1:1}px -endsnippet - -snippet border "border-top: size style color (border)" -border-top: ${1:1}px ${2:solid} #${3:999};$0 -endsnippet - -snippet border "border-width: width (border)" -border-width: ${1:1px};$0 -endsnippet - -snippet border "border: size style color (border)" -border: ${1:1px} ${2:solid} #${3:999};$0 -endsnippet - -snippet clear "clear: value (clear)" -clear: ${1:left/right/both/none};$0 -endsnippet - -snippet color "color: color-hex (color)" -color: #${1:DDD};$0 -endsnippet - -snippet color "color: color-name (color)" -color: ${1:red};$0 -endsnippet - -snippet color "color: color-rgb (color)" -color: rgb(${1:255},${2:255},${3:255});$0 -endsnippet - -snippet cursor "cursor: type (cursor)" -cursor: ${1:default/auto/crosshair/pointer/move/*-resize/text/wait/help};$0 -endsnippet - -snippet cursor "cursor: url (cursor)" -cursor: url($1);$0 -endsnippet - -snippet direction "direction: ltr|rtl (direction)" -direction: ${1:ltr|rtl};$0 -endsnippet - -snippet display "display: block (display)" -display: block;$0 -endsnippet - -snippet display "display: common-types (display)" -display: ${1:none/inline/block/list-item/run-in/compact/marker};$0 -endsnippet - -snippet display "display: inline (display)" -display: inline;$0 -endsnippet - -snippet display "display: table-types (display)" -display: ${1:table/inline-table/table-row-group/table-header-group/table-footer-group/table-row/table-column-group/table-column/table-cell/table-caption};$0 -endsnippet - -snippet float "float: left:right:none (float)" -float: ${1:left/right/none};$0 -endsnippet - -snippet font "font-family: family (font)" -font-family: ${1:Arial, "MS Trebuchet"}, ${2:sans-}serif;$0 -endsnippet - -snippet font "font-size: size (font)" -font-size: ${1:100%};$0 -endsnippet - -snippet font "font-style: normal:italic:oblique (font)" -font-style: ${1:normal/italic/oblique};$0 -endsnippet - -snippet font "font-variant: normal:small-caps (font)" -font-variant: ${1:normal/small-caps};$0 -endsnippet - -snippet font "font-weight: weight (font)" -font-weight: ${1:normal/bold};$0 -endsnippet - -snippet font "font: style variant weight size:line-height font -family (font)" -font: ${1:normal/italic/oblique} ${2:normal/small-caps} ${3:normal/bold} ${4:1em/1.5em} ${5:Arial}, ${6:sans-}serif;$0 -endsnippet - -snippet font "font: size font (font)" -font: ${1:75%} ${2:"Lucida Grande", "Trebuchet MS", Verdana,} ${3:sans-}serif;$0 -endsnippet - -snippet letter "letter-spacing: length-em (letter)" -letter-spacing: $1em;$0 -endsnippet - -snippet letter "letter-spacing: length-px (letter)" -letter-spacing: $1px;$0 -endsnippet - -snippet list "list-style-image: url (list)" -list-style-image: url($1);$0 -endsnippet - -snippet list "list-style-position: pos (list)" -list-style-position: ${1:inside/outside};$0 -endsnippet - -snippet list "list-style-type: asian (list)" -list-style-type: ${1:cjk-ideographic/hiragana/katakana/hiragana-iroha/katakana-iroha};$0 -endsnippet - -snippet list "list-style-type: marker(list)" -list-style-type: ${1:none/disc/circle/square};$0 -endsnippet - -snippet list "list-style-type: numeric (list)" -list-style-type: ${1:decimal/decimal-leading-zero/zero};$0 -endsnippet - -snippet list "list-style-type: other (list)" -list-style-type: ${1:hebrew/armenian/georgian};$0 -endsnippet - -snippet list "list-style-type: roman-alpha-greek (list)" -list-style-type: ${1:lower-roman/upper-roman/lower-alpha/upper-alpha/lower-greek/lower-latin/upper-latin};$0 -endsnippet - -snippet list "list-style: type position image (list)" -list-style: ${1:none/disc/circle/square/decimal/zero} ${2:inside/outside} url($3);$0 -endsnippet - -snippet margin "margin-bottom: length (margin)" -margin-bottom: ${1:20px};$0 -endsnippet - -snippet margin "margin-left: length (margin)" -margin-left: ${1:20px};$0 -endsnippet - -snippet margin "margin-right: length (margin)" -margin-right: ${1:20px};$0 -endsnippet - -snippet margin "margin-top: length (margin)" -margin-top: ${1:20px};$0 -endsnippet - -snippet margin "margin: all (margin)" -margin: ${1:20px};$0 -endsnippet - -snippet margin "margin: T R B L (margin)" -margin: ${1:20px} ${2:0px} ${3:40px} ${4:0px};$0 -endsnippet - -snippet margin "margin: V H (margin)" -margin: ${1:20px} ${2:0px};$0 -endsnippet - -snippet marker "marker-offset: auto (marker)" -marker-offset: auto;$0 -endsnippet - -snippet marker "marker-offset: length (marker)" -marker-offset: ${1:10px};$0 -endsnippet - -snippet overflow "overflow: type (overflow)" -overflow: ${1:visible/hidden/scroll/auto};$0 -endsnippet - -snippet padding "padding-bottom: length (margin)" -padding-bottom: ${1:20px};$0 -endsnippet - -snippet padding "padding-left: length (margin)" -padding-left: ${1:20px};$0 -endsnippet - -snippet padding "padding-right: length (margin)" -padding-right: ${1:20px};$0 -endsnippet - -snippet padding "padding-top: length (margin)" -padding-top: ${1:20px};$0 -endsnippet - -snippet padding "padding: T R B L (padding)" -padding: ${1:20px} ${2:0px} ${3:40px} ${4:0px};$0 -endsnippet - -snippet padding "padding: V H (padding)" -padding: ${1:20px} ${2:0px};$0 -endsnippet - -snippet padding "padding: all (padding)" -padding: ${1:20px};$0 -endsnippet - -snippet position "position: type (position)" -position: ${1:static/relative/absolute/fixed};$0 -endsnippet - -snippet { "properties { } ( } )" -{ - /* $1 */ - $0 - -endsnippet - -snippet scrollbar "scrollbar" -scrollbar-base-color: ${1:#CCCCCC};${2: -scrollbar-arrow-color: ${3:#000000}; -scrollbar-track-color: ${4:#999999}; -scrollbar-3dlight-color: ${5:#EEEEEE}; -scrollbar-highlight-color: ${6:#FFFFFF}; -scrollbar-face-color: ${7:#CCCCCC}; -scrollbar-shadow-color: ${9:#999999}; -scrollbar-darkshadow-color: ${8:#666666};} -endsnippet - -snippet selection "selection" -$1::-moz-selection, -$1::selection { - color: ${2:inherit}; - background: ${3:inherit}; -} -endsnippet - -snippet text "text-align: left:center:right (txt)" -text-align: ${1:left/right/center/justify};$0 -endsnippet - -snippet text "text-decoration: none:underline:overline:line-through:blink (text)" -text-decoration: ${1:none/underline/overline/line-through/blink};$0 -endsnippet - -snippet text "text-indent: length (text)" -text-indent: ${1:10}px;$0 -endsnippet - -snippet text "text-transform: capitalize:upper:lower (text)" -text-transform: ${1:capitalize/uppercase/lowercase};$0 -endsnippet - -snippet vertical "vertical-align: type (vertical)" -vertical-align: ${1:baseline/sub/super/top/text-top/middle/bottom/text-bottom/length/%};$0 -endsnippet - -snippet visibility "visibility: type (visibility)" -visibility: ${1:visible/hidden/collapse};$0 -endsnippet - -snippet white "white-space: normal:pre:nowrap (white)" -white-space: ${1:normal/pre/nowrap};$0 -endsnippet - -snippet word "word-spacing: length (word)" -word-spacing: ${1:10px};$0 -endsnippet - -snippet z "z-index: index (z)" -z-index: $1;$0 -endsnippet - -# vim:ft=snippets: diff --git a/vim/snippets/vim-snippets/UltiSnips/cuda.snippets b/vim/snippets/vim-snippets/UltiSnips/cuda.snippets deleted file mode 100644 index 2a9a7e5..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/cuda.snippets +++ /dev/null @@ -1,5 +0,0 @@ -priority -50 - -extends cpp - -# vim:ft=snippets: diff --git a/vim/snippets/vim-snippets/UltiSnips/d.snippets b/vim/snippets/vim-snippets/UltiSnips/d.snippets deleted file mode 100644 index a9d89b8..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/d.snippets +++ /dev/null @@ -1,584 +0,0 @@ -# Simple shortcuts - -priority -50 - -snippet imp "import (imp)" b -import ${1:std.stdio}; -endsnippet - -snippet pimp "public import (pimp)" b -public import ${1:/*module*/}; -endsnippet - -snippet over "override (over)" b -override ${1:/*function*/} -endsnippet - -snippet al "alias (al)" -alias ${1:/*orig*/} ${2:/*alias*/}; -endsnippet - -snippet mixin "mixin (mixin)" b -mixin ${1:/*mixed_in*/} ${2:/*name*/}; -endsnippet - -snippet new "new (new)" -new $1($2); -endsnippet - -snippet scpn "@safe const pure nothrow (scpn)" -@safe const pure nothrow -endsnippet - -snippet spn "@safe pure nothrow (spn)" -@safe pure nothrow -endsnippet - -snippet cont "continue (cont)" -continue; -endsnippet - -snippet dis "@disable (dis)" b -@disable ${1:/*method*/}; -endsnippet - -snippet pub "public (pub)" b -public: - ${1:/*members*/} -endsnippet - -snippet priv "private (priv)" b -private: - ${1:/*members*/} -endsnippet - -snippet prot "protected (prot)" b -protected: - ${1:/*members*/} -endsnippet - -snippet pack "package (pack)" b -package: - ${1:/*members*/} -endsnippet - -snippet ret "return (ret)" -return ${1:/*value to return*/}; -endsnippet - -snippet auto "auto (auto)" b -auto ${1:/*variable*/} = ${2:/*value*/}; -endsnippet - -snippet con "const (con)" b -const ${1:/*variable*/} = ${2:/*value*/}; -endsnippet - -snippet siz "size_t (siz)" b -size_t ${1:/*variable*/} = ${2:/*value*/}; -endsnippet - -snippet sup "super (sup)" b -super(${1:/*args*/}); -endsnippet - -# Phobos - -snippet tup "tuple (tup)" -tuple(${1:/*args*/}) -endsnippet - -snippet wr "writeln (wr)" -writeln(${1:/*args*/}); -endsnippet - -snippet to "to (to)" -to!(${1:/*type*/})(${2:/*arg*/}) -endsnippet - -snippet enf "enforce (enf)" b -enforce(${1:/*condition*/}, - new $2Exception(${3:/*args*/})); -endsnippet - -# Branches - -snippet if "if .. (if)" -if(${1:/*condition*/}) -{ - ${VISUAL}$0 -} -endsnippet - -snippet ife "if .. else (ife)" b -if(${1:/*condition*/}) -{ - $2 -} -else -{ - ${3:/*else*/} -} -endsnippet - -snippet el "else (el)" b -else -{ - ${VISUAL}$1 -} -endsnippet - -snippet elif "else if (elif)" b -else if(${1:/*condition*/}) -{ - ${VISUAL}$0 -} -endsnippet - -snippet sw "switch (sw)" -switch(${1:/*var*/}) -{ - case ${2:/*value*/}: - $3 - break; - case ${4:/*value*/}: - $5 - break; - ${7:/*more cases*/} - default: - ${6:assert(false);} -} -endsnippet - -snippet fsw "final switch (fsw)" -final switch(${1:/*var*/}) -{ - case ${2:/*value*/}: - $3 - break; - case ${4:/*value*/}: - $5 - break; - ${7:/*more cases*/} -} -endsnippet - -snippet case "case (case)" b -case ${1:/*value*/}: - $2 - break; -endsnippet - -snippet ?: "ternary operator (?:)" -${1:/*condition*/} ? ${2:/*then*/} : ${3:/*else*/}$4 -endsnippet - -# Loops - -snippet do "do while (do)" b -do -{ - ${VISUAL}$2 -} while(${1:/*condition*/}); -endsnippet - -snippet wh "while (wh)" b -while(${1:/*condition*/}) -{ - ${VISUAL}$2 -} -endsnippet - -snippet for "for (for)" b -for (${4:size_t} ${2:i} = 0; $2 < ${1:count}; ${3:++$2}) -{ - ${VISUAL}$0 -} -endsnippet - -snippet forever "forever (forever)" b -for(;;) -{ - ${VISUAL}$0 -} -endsnippet - -snippet fore "foreach (fore)" -foreach(${1:/*elem*/}; ${2:/*range*/}) -{ - ${VISUAL}$3 -} -endsnippet - -snippet forif "foreach if (forif)" b -foreach(${1:/*elem*/}; ${2:/*range*/}) if(${3:/*condition*/}) -{ - ${VISUAL}$4 -} -endsnippet - -# Contracts -snippet in "in contract (in)" b -in -{ - assert(${1:/*condition*/}, "${2:error message}"); - $3 -} -body -endsnippet - -snippet out "out contract (out)" b -out${1:(result)} -{ - assert(${2:/*condition*/}, "${3:error message}"); - $4 -} -body -endsnippet - -snippet inv "invariant (inv)" b -invariant() -{ - assert(${1:/*condition*/}, "${2:error message}"); - $3 -} -endsnippet - -# Functions (generic) - -snippet fun "function definition (fun)" -${1:void} ${2:/*function name*/}(${3:/*args*/}) ${4:@safe pure nothrow} -{ - ${VISUAL}$5 -} -endsnippet - -snippet void "void function definition (void)" -void ${1:/*function name*/}(${2:/*args*/}) ${3:@safe pure nothrow} -{ - ${VISUAL}$4 -} -endsnippet - -snippet this "ctor (this)" w -this(${1:/*args*/}) -{ - ${VISUAL}$2 -} -endsnippet - -snippet get "getter property (get)" -@property ${1:/*type*/} ${2:/*member_name*/}() const pure nothrow {return ${3:$2_};} -endsnippet - -snippet set "setter property (set)" -@property void ${1:/*member_name*/}(${2:/*type*/} rhs) pure nothrow {${3:$1_} = rhs;} -endsnippet - -# Functions (concrete) - -snippet main "Main" b -void main(string[] args) -{ - ${VISUAL}${0: /*code*/} -} -endsnippet - -# Mixins - -snippet signal "signal (signal)" b -mixin Signal!(${1:/*args*/}) ${2:/*name*/}; -endsnippet - -# Scope - -snippet scope "scope (scope)" b -scope(${1:exit}) -{ - ${VISUAL}$2 -} -endsnippet - -# With - -snippet with "with (with)" -with($1) -{ - ${VISUAL}$2 -} -endsnippet - -# Exception handling - -snippet try "try/catch (try)" b -try -{ - ${VISUAL}${1:/*code to try*/} -} -catch($2Exception e) -{ - ${3:/*handle exception*/} -} -endsnippet - -snippet tryf "try/catch/finally (tryf)" b -try -{ - ${VISUAL}${1:/*code to try*/} -} -catch($2Exception e) -{ - ${3:/*handle exception*/} -} -finally -{ - ${4:/*cleanup*/} -} -endsnippet - -snippet catch "catch (catch)" b -catch($1Exception e) -{ - ${2:/*handle exception*/} -} -endsnippet - -snippet thr "throw (thr)" -throw new $1Exception("$2"); -endsnippet - - -# Type declarations - -snippet struct "struct (struct)" -struct ${1:`!p snip.rv = (snip.basename or "name")`} -{ - $2 -} -endsnippet - -snippet union "union (union)" -union ${1:`!p snip.rv = (snip.basename or "name")`} -{ - $2 -} -endsnippet - -snippet class "class (class)" -class ${1:`!p snip.rv = (snip.basename or "name")`} -{ - $2 -} -endsnippet - -snippet inter "interface (inter)" -interface ${1:`!p snip.rv = (snip.basename or "name")`} -{ - $2 -} -endsnippet - -snippet enum "enum (enum)" -enum ${1:`!p snip.rv = (snip.basename or "name")`} -{ - $2 -} -endsnippet - - -# Exception declarations - -snippet exc "exception declaration (exc)" b -/// ${3:/*documentation*/} -class $1Exception : $2Exception -{ - public this(string msg, string file = __FILE__, int line = __LINE__) - { - super(msg, file, line); - } -} -endsnippet - - -# Conditional compilation - -snippet version "version (version)" b -version(${1:/*version name*/}) -{ - ${VISUAL}$2 -} -endsnippet - -snippet debug "debug" b -debug -{ - ${VISUAL}$1 -} -endsnippet - - -# Templates - -snippet temp "template (temp)" b -template ${2:/*name*/}(${1:/*args*/}) -{ - $3 -} -endsnippet - - -# Asserts - -snippet ass "assert (ass)" b -assert(${1:false}, "${2:TODO}"); - -endsnippet - - -# Unittests - -snippet unittest "unittest (unittest)" b -unittest -{ - $1 -} -endsnippet - - -# Common member functions - -snippet opDis "opDispatch (opDis)" b -${1:/*return type*/} opDispatch(string s)() -{ - $2; -} -endsnippet - -snippet op= "opAssign (op=)" b -void opAssign($1 rhs) ${2:@safe pure nothrow} -{ - $2 -} -endsnippet - -snippet opCmp "opCmp (opCmp)" b -int opCmp($1 rhs) @safe const pure nothrow -{ - $2 -} -endsnippet - -snippet opApply "opApply (opApply)" b -int opApply(int delegate(ref ${1:/*iterated type/s*/}) dg) -{ - int result = 0; - ${2:/*loop*/} - { - result = dg(${3:/*arg/s*/}); - if(result){break;} - } - return result; -} -endsnippet - -snippet toString "toString (toString)" b -string toString() @safe const pure nothrow -{ - $1 -} -endsnippet - - -# Comments - - -snippet todo "TODO (todo)" -// TODO: $1 -endsnippet - - -# DDoc - -snippet doc "generic ddoc block (doc)" b -/// ${1:description} -/// -/// ${2:details} -endsnippet - -snippet fdoc "function ddoc block (fdoc)" b -/// ${1:description} -/// -/// ${2:Params: ${3:param} = ${4:param description} -/// $5} -/// -/// ${6:Returns: ${7:return value}} -/// -/// ${8:Throws: $9Exception $10} -endsnippet - -snippet Par "Params (Par)" -Params: ${1:param} = ${2:param description} -/// $3 -endsnippet - -snippet Ret "Returns (Ret)" -Returns: ${1:return value/s} -endsnippet - -snippet Thr "Throws (Thr)" -Throws: $1Exception $2 -endsnippet - -snippet Example "Examples (Example)" -Examples: -/// -------------------- -/// ${1:example code} -/// -------------------- -endsnippet - - -# License blocks - -snippet gpl "GPL (gpl)" b -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// -// Copyright (C) ${1:Author}, `!v strftime("%Y")` - -$2 -endsnippet - -snippet boost "Boost (boost)" b -// Copyright ${1:Author} `!v strftime("%Y")`. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) - -$2 -endsnippet - - -# New module - -snippet module "New module (module)" b -// Copyright ${1:Author} `!v strftime("%Y")`. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) - -module $2.`!v vim_snippets#Filename('$1', 'name')`; - - -$3 -endsnippet diff --git a/vim/snippets/vim-snippets/UltiSnips/django.snippets b/vim/snippets/vim-snippets/UltiSnips/django.snippets deleted file mode 100644 index 8f83628..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/django.snippets +++ /dev/null @@ -1,361 +0,0 @@ -priority -50 - -# This files will define django snippets from sublime text djaneiro -# FORMS SNIPPETS - -snippet form "Form" b -class ${1:FORMNAME}(forms.Form): - - ${2:# TODO: Define form fields here} -endsnippet - -snippet modelform "ModelForm" b -class ${1:MODELNAME}Form(forms.ModelForm): - - class Meta: - model = $1 -endsnippet - -snippet fbool "BooleanField" b -${1:FIELDNAME} = forms.BooleanField($2) -endsnippet - -snippet fchar "CharField" b -${1:FIELDNAME} = forms.CharField($2) -endsnippet - -snippet fchoice "ChoiceField" b -${1:FIELDNAME} = forms.ChoiceField($2) -endsnippet - -snippet fcombo "ComboField" b -${1:FIELDNAME} = forms.ComboField($2) -endsnippet - -snippet fdate "DateField" b -${1:FIELDNAME} = forms.DateField($2) -endsnippet - -snippet fdatetime "DateTimeField" b -${1:FIELDNAME} = forms.DateTimeField($2) -endsnippet - -snippet fdecimal "DecimalField" b -${1:FIELDNAME} = forms.DecimalField($2) -endsnippet - -snippet fmail "EmailField" b -${1:FIELDNAME} = forms.EmailField($2) -endsnippet - -snippet ffile "FileField" b -${1:FIELDNAME} = forms.FileField($2) -endsnippet - -snippet ffilepath "FilePathField" b -${1:FIELDNAME} = forms.FilePathField($2) -endsnippet - -snippet ffloat "FloatField" b -${1:FIELDNAME} = forms.FloatField($2) -endsnippet - -snippet fip "IPAddressField" b -${1:FIELDNAME} = forms.IPAddressField($2) -endsnippet - -snippet fimg "ImageField" b -${1:FIELDNAME} = forms.ImageField($2) -endsnippet - -snippet fint "IntegerField" b -${1:FIELDNAME} = forms.IntegerField($2) -endsnippet - -snippet fmochoice "ModelChoiceField" b -${1:FIELDNAME} = forms.ModelChoiceField($2) -endsnippet - -snippet fmomuchoice "ModelMultipleChoiceField" b -${1:FIELDNAME} = forms.ModelMultipleChoiceField($2) -endsnippet - -snippet fmuval "MultiValueField" b -${1:FIELDNAME} = forms.MultiValueField($2) -endsnippet - -snippet fmuchoice "MultipleChoiceField" b -${1:FIELDNAME} = forms.MultipleChoiceField($2) -endsnippet - -snippet fnullbool "NullBooleanField" b -${1:FIELDNAME} = forms.NullBooleanField($2) -endsnippet - -snippet freg "RegexField" b -${1:FIELDNAME} = forms.RegexField($2) -endsnippet - -snippet fslug "SlugField" b -${1:FIELDNAME} = forms.SlugField($2) -endsnippet - -snippet fsdatetime "SplitDateTimeField" b -${1:FIELDNAME} = forms.SplitDateTimeField($2) -endsnippet - -snippet ftime "TimeField" b -${1:FIELDNAME} = forms.TimeField($2) -endsnippet - -snippet ftchoice "TypedChoiceField" b -${1:FIELDNAME} = forms.TypedChoiceField($2) -endsnippet - -snippet ftmuchoice "TypedMultipleChoiceField" b -${1:FIELDNAME} = forms.TypedMultipleChoiceField($2) -endsnippet - -snippet furl "URLField" b -${1:FIELDNAME} = forms.URLField($2) -endsnippet - -# MODELS SNIPPETS - -snippet model "Model" b -class ${1:MODELNAME}(models.Model): - $0 - class Meta: - verbose_name = "$1" - verbose_name_plural = "$1s" - - def __str__(self): - return super($1, self).__str__() - -endsnippet - -snippet modelfull "Model" b -class ${1:MODELNAME}(models.Model): - ${2:# TODO: Define fields here} - - class Meta: - verbose_name = "$1" - verbose_name_plural = "$1s" - - def __str__(self): - return super($1, self).__str__() - - def save(self): - return super($1, self).save() - - @models.permalink - def get_absolute_url(self): - return ('') - - ${3:# TODO: Define custom methods here} - -endsnippet - -snippet mauto "AutoField" b -${1:FIELDNAME} = models.AutoField($2) -endsnippet - -snippet mbigint "BigIntegerField" b -${1:FIELDNAME} = models.BigIntegerField($2) -endsnippet - -snippet mbool "BooleanField" b -${1:FIELDNAME} = models.BooleanField($2) -endsnippet - -snippet mchar "CharField" b -${1:FIELDNAME} = models.CharField($2, max_length=${3:50}) -endsnippet - -snippet mcoseint "CommaSeparatedIntegerField" b -${1:FIELDNAME} = models.CommaSeparatedIntegerField($2) -endsnippet - -snippet mdate "DateField" b -${1:FIELDNAME} = models.DateField($2) -endsnippet - -snippet mdatetime "DateTimeField" b -${1:FIELDNAME} = models.DateTimeField($2) -endsnippet - -snippet mdecimal "DecimalField" b -${1:FIELDNAME} = models.DecimalField(max_digits=${2:10}, decimal_places=${3:2}) -endsnippet - -snippet memail "EmailField" b -${1:FIELDNAME} = models.EmailField($2) -endsnippet - -snippet mfile "FileField" b -${1:FIELDNAME} = models.FileField($2) -endsnippet - -snippet mfilepath "FilePathField" b -${1:FIELDNAME} = models.FilePathField($2) -endsnippet - -snippet mfloat "FloatField" b -${1:FIELDNAME} = models.FloatField($2) -endsnippet - -snippet fk "ForeignKey" b -${1:FIELDNAME} = models.ForeignKey($2) -endsnippet - -snippet mip "IPAddressField" b -${1:FIELDNAME} = models.IPAddressField($2) -endsnippet - -snippet mimg "ImageField" b -${1:FIELDNAME} = models.ImageField($2) -endsnippet - -snippet mint "IntegerField" b -${1:FIELDNAME} = models.IntegerField($2) -endsnippet - -snippet m2m "ManyToManyField" b -${1:FIELDNAME} = models.ManyToManyField($2) -endsnippet - -snippet mnullbool "NullBooleanField" b -${1:FIELDNAME} = models.NullBooleanField($2) -endsnippet - -snippet o2o "OneToOneField" b -${1:FIELDNAME} = models.OneToOneField($2) -endsnippet - -snippet mphone "PhoneNumberField" b -${1:FIELDNAME} = models.PhoneNumberField($2) -endsnippet - -snippet mposint "PositiveIntegerField" b -${1:FIELDNAME} = models.PositiveIntegerField($2) -endsnippet - -snippet mpossmallint "PositiveSmallIntegerField" b -${1:FIELDNAME} = models.PositiveSmallIntegerField($2) -endsnippet - -snippet mslug "SlugField" b -${1:FIELDNAME} = models.SlugField($2) -endsnippet - -snippet msmallint "SmallIntegerField" b -${1:FIELDNAME} = models.SmallIntegerField($2) -endsnippet - -snippet mtext "TextField" b -${1:FIELDNAME} = models.TextField($2) -endsnippet - -snippet mtime "TimeField" b -${1:FIELDNAME} = models.TimeField($2) -endsnippet - -snippet murl "URLField" b -${1:FIELDNAME} = models.URLField($2) -endsnippet - -snippet musstate "USStateField" b -${1:FIELDNAME} = models.USStateField($2) -endsnippet - -snippet mxml "XMLField" b -${1:FIELDNAME} = models.XMLField($2) -endsnippet - -# VIEWS SNIPPETS - -snippet adminview "Model Admin View" b -class $1Admin(admin.ModelAdmin): - ''' - Admin View for $1 - ''' - list_display = ('$2',) - list_filter = ('$3',) - inlines = [ - $4Inline, - ] - raw_id_fields = ('$5',) - readonly_fields = ('$6',) - search_fields = ['$7'] -admin.site.register($1, $1Admin) -endsnippet - -snippet createview "Generic Create View" b -class ${1:MODEL_NAME}CreateView(CreateView): - model = ${1:MODEL_NAME} - template_name = "${2:TEMPLATE_NAME}" -endsnippet - -snippet deleteview "Generic Delete View" b -class ${1:MODEL_NAME}DeleteView(DeleteView): - model = ${1:MODEL_NAME} - template_name = "${2:TEMPLATE_NAME}" -endsnippet - -snippet detailview "Generic Detail View" b -class ${1:MODEL_NAME}DetailView(DetailView): - model = ${1:MODEL_NAME} - template_name = "${2:TEMPLATE_NAME}" -endsnippet - -snippet listview "Generic List View" b -class ${1:MODEL_NAME}ListView(ListView): - model = ${1:MODEL_NAME} - template_name = "${2:TEMPLATE_NAME}" -endsnippet - -snippet stackedinline "Stacked Inline" b -class $1Inline(admin.StackedInline): - ''' - Stacked Inline View for $1 - ''' - model = ${2:$1} - min_num = ${3:3} - max_num = ${4:20} - extra = ${5:1} - raw_id_fields = ($6,) -endsnippet - -snippet tabularinline "Tabular Inline" b -class $1Inline(admin.TabularInline): - ''' - Tabular Inline View for $1 - ''' - model = ${2:$1} - min_num = ${3:3} - max_num = ${4:20} - extra = ${5:1} - raw_id_fields = ($6,) -endsnippet - -snippet templateview "Generic Template View" b -class ${1:CLASS_NAME}(TemplateView): - template_name = "${2:TEMPLATE_NAME}" -endsnippet - -snippet updateview "Generic Update View" b -class ${1:MODEL_NAME}UpdateView(UpdateView): - model = ${1:MODEL_NAME} - template_name = "${2:TEMPLATE_NAME}" -endsnippet - -snippet dispatch "Dispatch View method" b -def dispatch(self, request, *args, **kwargs): - return super(${1:CLASS_NAME}, self).dispatch(request, *args, **kwargs) -endsnippet - -snippet context "get_context_data view method" b -def get_context_data(self, **kwargs): - kwargs['extra_context'] = ${1:'New Value'} - return super(${2:CLASS_NAME}, self).get_context_data(**kwargs) -endsnippet diff --git a/vim/snippets/vim-snippets/UltiSnips/eelixir.snippets b/vim/snippets/vim-snippets/UltiSnips/eelixir.snippets deleted file mode 100644 index 72fb7ce..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/eelixir.snippets +++ /dev/null @@ -1,39 +0,0 @@ -priority -50 - -extends html - -snippet % "<% %>" w -<% $0 %> -endsnippet - -snippet = "<%= %>" w -<%= $0 %> -endsnippet - -snippet end "<% end %>" w -<% end %> -endsnippet - -snippet for -<%= for ${1:item} <- ${2:$1s} ${3:@conn} do %> - $0 -<% end %> -endsnippet - -snippet ft "form_tag" w -<%= form_tag(${1:"${2:/users}"}, method: ${3::post}) %> - $0 - -endsnippet - -snippet lin "link" w -<%= link ${1:"${2:Submit}"}, to: ${3:"${4:/users}"}, method: ${5::delete} %> -endsnippet - -snippet ff "form_for" w -<%= form_for @changeset, ${1:"${2:/users}"}, fn f -> %> - $0 - - <%= submit "Submit" %> -<% end %> -endsnippet diff --git a/vim/snippets/vim-snippets/UltiSnips/erlang.snippets b/vim/snippets/vim-snippets/UltiSnips/erlang.snippets deleted file mode 100644 index f317685..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/erlang.snippets +++ /dev/null @@ -1,108 +0,0 @@ -########################################################################### -# TEXTMATE SNIPPETS # -########################################################################### - -priority -50 - -snippet pat "Case:Receive:Try Clause" -${1:pattern}${2: when ${3:guard}} -> - ${4:body} -endsnippet - -snippet beh "Behaviour Directive" b --behaviour(${1:behaviour}). -endsnippet - -snippet case "Case Expression" -case ${1:expression} of - ${2:pattern}${3: when ${4:guard}} -> - ${5:body} -end -endsnippet - -snippet def "Define Directive" b --define(${1:macro}${2: (${3:param})}, ${4:body}). -endsnippet - -snippet exp "Export Directive" b --export([${1:function}/${2:arity}]). -endsnippet - -snippet fun "Fun Expression" -fun - (${1:pattern})${2: when ${3:guard}} -> - ${4:body} -end -endsnippet - -snippet fu "Function" -${1:function}(${2:param})${3: when ${4:guard}} -> - ${5:body} -endsnippet - -snippet if "If Expression" -if - ${1:guard} -> - ${2:body} -end -endsnippet - -snippet ifdef "Ifdef Directive" b --ifdef(${1:macro}). -endsnippet - -snippet ifndef "Ifndef Directive" b --ifndef(${1:macro}). -endsnippet - -snippet imp "Import Directive" b --import(${1:module}, [${2:function}/${3:arity}]). -endsnippet - -snippet inc "Include Directive" b --include("${1:file}"). -endsnippet - -snippet mod "Module Directive" b --module(${1:`!p snip.rv = snip.basename or "module"`}). -endsnippet - -snippet rcv "Receive Expression" -receive -${1: ${2:pattern}${3: when ${4:guard}} -> - ${5:body}} -${6:after - ${7:expression} -> - ${8:body}} -end -endsnippet - -snippet rec "Record Directive" b --record(${1:record}, {${2:field}${3: = ${4:value}}}). -endsnippet - -snippet try "Try Expression" -try${1: ${2:expression}${3: of - ${4:pattern}${5: when ${6:guard}} -> - ${7:body}}} -${8:catch - ${9:pattern}${10: when ${11:guard}} -> - ${12:body}} -${13:after - ${14:body}} -end -endsnippet - -snippet undef "Undef Directive" b --undef(${1:macro}). -endsnippet - -snippet || "List Comprehension" -[${1:X} || ${2:X} <- ${3:List}${4:, gen}] -endsnippet - -snippet gen "Generator Expression" -${1:X} <- ${2:List}${3:, gen} -endsnippet - -# vim:ft=snippets: diff --git a/vim/snippets/vim-snippets/UltiSnips/eruby.snippets b/vim/snippets/vim-snippets/UltiSnips/eruby.snippets deleted file mode 100644 index ef93be4..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/eruby.snippets +++ /dev/null @@ -1,237 +0,0 @@ -extends html - -priority -50 - -# TextMate added these variables to cope with changes in ERB handling -# in different versions of Rails -- for instance, Rails 3 automatically -# strips whitespace so that it's no longer necessary to use a form like -# <% end -%>, but if you're still maintaining Rails 2 projects, you -# can't omit the minus sign and get the same behavior. -# -# The following regex replace substitutes the function below for the -# TextMate variable references after the snippets are converted: -# -# /\v\$\{(TM_RAILS_TEMPLATE_([^_]+)_RUBY_([^_\s]+))\}/`!p textmate_var('\1', snip)`/g -# -global !p -def textmate_var(var, snip): - lookup = dict( - TM_RAILS_TEMPLATE_START_RUBY_EXPR = snip.opt('g:tm_rails_template_start_ruby_expr', '<%= '), - TM_RAILS_TEMPLATE_END_RUBY_EXPR = snip.opt('g:tm_rails_template_end_ruby_expr', ' %>'), - TM_RAILS_TEMPLATE_START_RUBY_INLINE = snip.opt('g:tm_rails_template_start_ruby_inline', '<% '), - TM_RAILS_TEMPLATE_END_RUBY_INLINE = snip.opt('g:tm_rails_template_end_ruby_inline', ' %>'), - TM_RAILS_TEMPLATE_END_RUBY_BLOCK = '<% end %>' - ) - snip.rv = lookup[var] - return -endglobal - - -snippet % "<% $0 %>" i -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_INLINE', snip)`$0`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_INLINE', snip)` -endsnippet - -snippet = "<%= $0 %>" i -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`$0`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -########################################################################### -# GENERATED FROM get_tm_snippets.py + REGEX REPLACE # -########################################################################### - -snippet fi "<%= Fixtures.identify(:symbol) %>" -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`Fixtures.identify(:${1:name})`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)`$0 -endsnippet - -snippet ft "form_tag" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_INLINE', snip)`form_tag(${1::action => '${2:update}'}${3:, ${4:${5:class} => '${6:form}'\}}}) do`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` - $0 -`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_BLOCK', snip)` -endsnippet - -snippet ffs "form_for submit 2" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`${1:f}.submit '${2:Submit}'${3:, :disable_with => '${4:$2ing...}'}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet f. "f_fields_for (nff)" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_INLINE', snip)`f.fields_for :${1:attribute} do |${2:f}|`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_INLINE', snip)` - $0 -`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_BLOCK', snip)` -endsnippet - -snippet f. "f.checkbox" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`f.check_box :${1:attribute}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet f. "f.file_field" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`f.file_field :${1:attribute}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet f. "f.hidden_field" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`f.hidden_field :${1:attribute}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet f. "f.label" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`f.label :${1:attribute}${2:, "${3:${1/[[:alpha:]]+|(_)/(?1: :\u$0)/g}}"}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet f. "f.password_field" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`f.password_field :${1:attribute}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet f. "f.radio_button" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`f.radio_button :${1:attribute}, :${2:tag_value}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet f. "f.submit" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`f.submit "${1:Submit}"${2:, :disable_with => '${3:$1ing...}'}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet f. "f.text_area" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`f.text_area :${1:attribute}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet f. "f.text_field" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`f.text_field :${1:attribute}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet ffe "form_for with errors" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`error_messages_for :${1:model}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` - -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`form_for @${2:$1} do |f|`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` - $0 -`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_BLOCK', snip)` -endsnippet - -snippet ff "form_for" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`form_for @${1:model} do |f|`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` - $0 -`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_BLOCK', snip)` -endsnippet - -snippet ist "image_submit_tag" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`image_submit_tag("${1:agree.png}"${2:${3:, :id => "${4:${1/^(\w+)(\.\w*)?$/$1/}}"}${5:, :name => "${6:${1/^(\w+)(\.\w*)?$/$1/}}"}${7:, :class => "${8:${1/^(\w+)(\.\w*)?$/$1/}-button}"}${9:, :disabled => ${10:false}}})`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet it "image_tag" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`image_tag "$1${2:.png}"${3:${4:, :title => "${5:title}"}${6:, :class => "${7:class}"}}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet layout "layout" -layout "${1:template_name}"${2:${3:, :only => ${4:[:${5:action}, :${6:action}]}}${7:, :except => ${8:[:${9:action}, :${10:action}]}}} -endsnippet - -snippet jit "javascript_include_tag" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`javascript_include_tag ${1::all}${2:, :cache => ${3:true}}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet lt "link_to (name, dest)" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to "${1:link text...}", ${2:dest}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet lia "link_to (action)" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to "${1:link text...}", :action => "${2:index}"`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet liai "link_to (action, id)" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to "${1:link text...}", :action => "${2:edit}", :id => ${3:@item}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet lic "link_to (controller)" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to "${1:link text...}", :controller => "${2:items}"`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet lica "link_to (controller, action)" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to "${1:link text...}", :controller => "${2:items}", :action => "${3:index}"`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet licai "link_to (controller, action, id)" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to "${1:link text...}", :controller => "${2:items}", :action => "${3:edit}", :id => ${4:@item}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet linpp "link_to (nested path plural)" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to ${1:"${2:link text...}"}, ${3:${10:parent}_${11:child}_path(${12:@}${13:$10})}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet linp "link_to (nested path)" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to ${1:"${2:link text...}"}, ${3:${12:parent}_${13:child}_path(${14:@}${15:$12}, ${16:@}${17:$13})}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet lipp "link_to (path plural)" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to ${1:"${2:link text...}"}, ${3:${4:model}s_path}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet lip "link_to (path)" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to ${1:"${2:link text...}"}, ${3:${12:model}_path(${13:@}${14:$12})}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet lim "link_to model" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to ${1:model}.${2:name}, ${3:${4:$1}_path(${14:$1})}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet hide "page.hide (*ids)" -page.hide ${1:"${2:id(s)}"} -endsnippet - -snippet ins "page.insert_html (position, id, partial)" -page.insert_html :${1:top}, ${2:"${3:id}"}, :${4:partial => "${5:template}"} -endsnippet - -snippet rep "page.replace (id, partial)" -page.replace ${1:"${2:id}"}, :${3:partial => "${4:template}"} -endsnippet - -snippet reph "page.replace_html (id, partial)" -page.replace_html ${1:"${2:id}"}, :${3:partial => "${4:template}"} -endsnippet - -snippet show "page.show (*ids)" -page.show ${1:"${2:id(s)}"} -endsnippet - -snippet tog "page.toggle (*ids)" -page.toggle ${1:"${2:id(s)}"} -endsnippet - -snippet vis "page.visual_effect (effect, id)" -page.visual_effect :${1:toggle_slide}, ${2:"${3:DOM ID}"} -endsnippet - -snippet rp "render (partial) (rp)" -render :partial => "${1:item}" -endsnippet - -snippet rpc "render (partial,collection) (rpc)" -render :partial => "${1:item}", :collection => ${2:@$1s} -endsnippet - -snippet rpl "render (partial,locals) (rpl)" -render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1}$0 } -endsnippet - -snippet rpo "render (partial,object) (rpo)" -render :partial => "${1:item}", :object => ${2:@$1} -endsnippet - -snippet rps "render (partial,status) (rps)" -render :partial => "${1:item}", :status => ${2:500} -endsnippet - -snippet slt "stylesheet_link_tag" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`stylesheet_link_tag ${1::all}${2:, :cache => ${3:true}}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet st "submit_tag" w -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`submit_tag "${1:Save changes}"${2:, :id => "${3:submit}"}${4:, :name => "${5:$3}"}${6:, :class => "${7:form_$3}"}${8:, :disabled => ${9:false}}${10:, :disable_with => "${11:Please wait...}"}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -snippet else "else (ERB)" -<% else %> - $0 -endsnippet - -snippet lf "link_to_function" -`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to_function ${1:"${2:Greeting}"}, "${3:alert('Hello world!')}"$4`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` -endsnippet - -# vim:ft=snippets: diff --git a/vim/snippets/vim-snippets/UltiSnips/go.snippets b/vim/snippets/vim-snippets/UltiSnips/go.snippets deleted file mode 100644 index 35cf909..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/go.snippets +++ /dev/null @@ -1,115 +0,0 @@ -# Snippets for Go - -priority -50 - -# when to abbriviate and when not? -# b doesn't work here, because it ignores whitespace -# optional local name? -snippet /^import/ "Import declaration" r -import ( - "${1:package}" -) -endsnippet - -snippet /^package/ "Package declaration" r -// Package $1 provides ... -package ${1:main} -endsnippet - -# Mostly converted from: https://github.com/AlanQuatermain/go-tmbundle -snippet /^cons/ "Constants declaration" r -const ( - ${1:constant}${2/(.+)/ /}${2:type} = ${0:value} -) -endsnippet - -snippet /^con/ "Constant declaration" r -const ${1:name}${2/(.+)/ /}${2:type} = ${0:value} -endsnippet - -snippet iota "Iota constant generator" b -const ( - ${1:constant}${2/(.+)/ /}${2:type} = iota -) -endsnippet - -snippet struct "Struct declaration" b -type ${1:Struct} struct { - ${0:${VISUAL}} -} -endsnippet - -snippet interface "Interface declaration" b -type ${1:Interface} interface { - ${0:${VISUAL}} -} -endsnippet - -snippet if "If statement" b -if ${1:condition}${1/(.+)/ /}{ - ${0:${VISUAL}} -} -endsnippet - -snippet switch "Switch statement" b -switch ${1:expression}${1/(.+)/ /}{ -case$0 -} -endsnippet - -# functions -snippet /^main/ "Main function" r -func main() { - ${0:${VISUAL}} -} -endsnippet - -snippet /^meth/ "Method" r -func (${1:receiver} ${2:type}) ${3:name}(${4:params})${5/(.+)/ /}${5:type} { - ${0:${VISUAL}} -} -endsnippet - -snippet func "Function" b -func ${1:name}(${2:params})${3/(.+)/ /}${3:type} { - ${0:${VISUAL}} -} -endsnippet - -snippet funch "HTTP handler" b -func ${1:handler}(${2:w} http.ResponseWriter, ${3:r} *http.Request) { - ${0:${VISUAL}} -} -endsnippet - -# types and variables -snippet map "Map type" b -map[${1:keytype}]${2:valtype} -endsnippet - -snippet : "Variable declaration :=" b -${1:name} := ${0:value} -endsnippet - -snippet var "Variable declaration" b -var ${1:name}${2/(.+)/ /}${2:type}${3: = ${0:value}} -endsnippet - -snippet vars "Variables declaration" b -var ( - ${1:name}${2/(.+)/ /}${2:type}${3: = ${0:value} } -) -endsnippet - -snippet json "JSON field" -\`json:"${1:displayName}"\` -endsnippet - -# vim:ft=snippets: - -# error handling -snippet err "Basic error handling" b -if err != nil { - log.${1:Fatal}(err) -} -endsnippet diff --git a/vim/snippets/vim-snippets/UltiSnips/help.snippets b/vim/snippets/vim-snippets/UltiSnips/help.snippets deleted file mode 100644 index b07a7de..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/help.snippets +++ /dev/null @@ -1,37 +0,0 @@ -# Snippets for VIM Help Files - -priority -50 - -global !p -def sec_title(snip, t): - file_start = snip.fn.split('.')[0] - sec_name = t[1].strip("1234567890. ").lower().replace(' ', '-') - return ("*%s-%s*" % (file_start, sec_name)).rjust(78-len(t[1])) -endglobal - -snippet sec "Section marker" b -============================================================================== -${1:SECTION}`!p snip.rv = sec_title(snip, t)` - -$0 -endsnippet - -snippet ssec "Sub section marker" b -${1:Subsection}`!p snip.rv = sec_title(snip, t) -snip += "-"*len(t[1])` - -$0 -endsnippet - -snippet sssec "Subsub Section marker" b -${1:SubSubsection}:`!p snip.rv = sec_title(snip, t)` - -$0 -endsnippet - -# For vim help, follow the same settings as the official docs. -snippet modeline "Vim help modeline" - `!v 'vim'`:tw=78:ts=8:ft=help:norl: -endsnippet - -# vim:ft=snippets: diff --git a/vim/snippets/vim-snippets/UltiSnips/html.snippets b/vim/snippets/vim-snippets/UltiSnips/html.snippets deleted file mode 100644 index 0480277..0000000 --- a/vim/snippets/vim-snippets/UltiSnips/html.snippets +++ /dev/null @@ -1,530 +0,0 @@ -priority -50 - -########################################################################### -# TextMate Snippets # -########################################################################### - -global !p -def x(snip): - if snip.ft.startswith("x"): - snip.rv = '/' - else: - snip.rv = "" -endglobal - -snippet doctype "HTML - 5.0 (doctype)" b - - -endsnippet - -############# -# Shortcuts # -############# -snippet down "Down (down)" -↓ -endsnippet - -snippet enter "Enter (enter)" -⌅ -endsnippet - -snippet escape "Escape (escape)" -⎋ -endsnippet - -snippet left "Left (left)" -← -endsnippet - -snippet return "Return (return)" -↩ -endsnippet - -snippet right "Right (right)" -→ -endsnippet - -snippet shift "Shift (shift)" -⇧ -endsnippet - -snippet tab "Tab (tab)" -⇥ -endsnippet - -snippet up "Up (up)" -↑ -endsnippet - -############# -# HTML TAGS # -############# -snippet a "Link" w -${4:Anchor Text} -endsnippet - -snippet abbr "" w -$1 -endsnippet - -snippet access "accesskey global attribute" -accesskey="$1" -endsnippet - -snippet address "

    " w -
    $1
    -endsnippet - -snippet article "
    " -
    - ${1:article content} -
    -endsnippet - -snippet aside "