├── v.sublime-snippet ├── v-el.sublime-snippet ├── v-ref.sublime-snippet ├── v-bind.sublime-snippet ├── v-else.sublime-snippet ├── v-on.sublime-snippet ├── v-if.sublime-snippet ├── vuert.sublime-snippet ├── vuecmixins.sublime-snippet ├── v-link.sublime-snippet ├── vuertgo.sublime-snippet ├── v-for.sublime-snippet ├── vuenexttick.sublime-snippet ├── vue.sublime-snippet ├── vuecdata.sublime-snippet ├── vuef.sublime-snippet ├── vuecmethods.sublime-snippet ├── vueccomputed.sublime-snippet ├── vuecwatch.sublime-snippet ├── vueht.sublime-snippet ├── vuehtget.sublime-snippet ├── vuehtpost.sublime-snippet ├── vuecprops.sublime-snippet ├── vuex.sublime-snippet ├── vued.sublime-snippet ├── LICENSE.md ├── vuec.sublime-snippet ├── package.json └── README.md /v.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 7 | v 8 | source.js.embedded.html 9 | 10 | -------------------------------------------------------------------------------- /v-el.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 5 | v-el 6 | text.html 7 | v-el:el-name 8 | 9 | -------------------------------------------------------------------------------- /v-ref.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 5 | v-ref 6 | text.html 7 | v-ref:ref-name 8 | 9 | -------------------------------------------------------------------------------- /v-bind.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 5 | v-bind 6 | text.html 7 | :prop="data" 8 | 9 | -------------------------------------------------------------------------------- /v-else.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ${1} 4 | ]]> 5 | v-else 6 | text.html 7 | <div v-else> 8 | -------------------------------------------------------------------------------- /v-on.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 5 | v-on 6 | text.html 7 | @evt="callback" 8 | 9 | -------------------------------------------------------------------------------- /v-if.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ${2} 4 | ]]> 5 | v-if 6 | text.html 7 | <div v-if=""> 8 | -------------------------------------------------------------------------------- /vuert.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 5 | vuert 6 | source.js.embedded.html 7 | this.$route 8 | 9 | -------------------------------------------------------------------------------- /vuecmixins.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 5 | vuecmixins 6 | source.js.embedded.html 7 | Vue component mixins 8 | 9 | -------------------------------------------------------------------------------- /v-link.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ${2} 4 | ]]> 5 | v-link 6 | text.html 7 | <a v-link=""> 8 | 9 | 10 | -------------------------------------------------------------------------------- /vuertgo.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 5 | vuertgo 6 | source.js.embedded.html 7 | this.$route.router.go() 8 | 9 | -------------------------------------------------------------------------------- /v-for.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ${4} 4 | ]]> 5 | v-for 6 | text.html 7 | <div v-for="item in items"> 8 | 9 | -------------------------------------------------------------------------------- /vuenexttick.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | { 4 | ${1} 5 | });${2} 6 | ]]> 7 | vuenextick 8 | source.js.embedded.html 9 | Vue.nextTick() 10 | 11 | -------------------------------------------------------------------------------- /vue.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 9 | vue 10 | source.js.embedded.html 11 | Vue instance 12 | 13 | -------------------------------------------------------------------------------- /vuecdata.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 9 | vuecdata 10 | source.js.embedded.html 11 | Vue component data 12 | 13 | -------------------------------------------------------------------------------- /vuef.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 9 | vuef 10 | source.js.embedded.html 11 | Vue filter 12 | 13 | -------------------------------------------------------------------------------- /vuecmethods.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 9 | vuecmethods 10 | source.js.embedded.html 11 | Vue component methods 12 | 13 | -------------------------------------------------------------------------------- /vueccomputed.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 9 | vueccomputed 10 | source.js.embedded.html 11 | Vue computed props 12 | 13 | -------------------------------------------------------------------------------- /vuecwatch.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | { 5 | ${4} 6 | } 7 | }${5} 8 | ]]> 9 | vuecwatch 10 | source.js.embedded.html 11 | Vue component watch 12 | 13 | -------------------------------------------------------------------------------- /vueht.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | { 4 | console.log(res); 5 | }).catch(err => { 6 | console.log(err); 7 | }); 8 | ]]> 9 | vueht 10 | source.js.embedded.html 11 | this.$http() 12 | 13 | -------------------------------------------------------------------------------- /vuehtget.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | { 4 | console.log(res); 5 | }).catch(err => { 6 | console.log(err); 7 | }); 8 | ]]> 9 | vuehtget 10 | source.js.embedded.html 11 | this.$http.get() 12 | 13 | -------------------------------------------------------------------------------- /vuehtpost.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | { 4 | console.log(res); 5 | }).catch(err => { 6 | console.log(err); 7 | }); 8 | ]]> 9 | vuehtpost 10 | source.js.embedded.html 11 | this.$http.post() 12 | 13 | -------------------------------------------------------------------------------- /vuecprops.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 11 | vuecprops 12 | source.js.embedded.html 13 | Vue component props 14 | 15 | -------------------------------------------------------------------------------- /vuex.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 23 | vuex 24 | source.js.embedded.html 25 | Vue component 26 | 27 | -------------------------------------------------------------------------------- /vued.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 18 | vued 19 | source.js.embedded.html 20 | Vue directive 21 | 22 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 2 | Version 2, December 2004 3 | 4 | Copyright © 2017 Filipe Linhares 5 | 6 | Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. 7 | 8 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 9 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 10 | 11 | 0. You just DO WHAT THE FUCK YOU WANT TO. -------------------------------------------------------------------------------- /vuec.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 18 | 19 | 21 | ]]> 22 | vuec 23 | text.html.vue 24 | Vue component 25 | 26 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vuejs-snippets-sublime", 3 | "version": "1.1.2", 4 | "description": "Vuejs snippets for Sublime Text", 5 | "main": "vuejs", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/filipelinhares/vuejs-sublime-snippets.git" 9 | }, 10 | "keywords": [ 11 | "javascript", 12 | "sublime", 13 | "text", 14 | "snippets" 15 | ], 16 | "author": "Filipe Linhares ", 17 | "contributors": [ 18 | "Tiago " 19 | ], 20 | "license": "ISC", 21 | "bugs": { 22 | "url": "https://github.com/filipelinhares/vuejs-sublime-snippets/issues" 23 | }, 24 | "homepage": "https://github.com/filipelinhares/vuejs-sublime-snippets" 25 | } 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [Vue.js](http://vuejs.org/) Snippets for Sublime Text 2 | Snippets for Sublime Text with the key features of Vue.js 3 | 4 | ## Install 5 | 1. Open [packagecontrol.io](packagecontro.io) - (ctrl or ) + + p 6 | 2. Type "*Vuejs Snippets*" 7 | 3. :white_check_mark: Installed! 8 | 9 | ## Snippets 10 | 11 | ### Global: 12 | - `v` 13 | - `vue` ⇢ Vue instance 14 | - `vued` ⇢ Vue directive 15 | - `vuef` ⇢ Vue filter 16 | - `vuenexttick` ⇢ `Vue.nextTick()` 17 | 18 | ### Component + Options/Data 19 | - `vuec` ⇢ Vue component 20 | - `vueccomputed` ⇢ Vue computed props 21 | - `vuecdata` ⇢ Vue component data 22 | - `vuecmethods` ⇢ Vue component methods 23 | - `vuecmixins` ⇢ Vue component mixins 24 | - `vuecprops` ⇢ Vue component props 25 | - `vuecwatch` ⇢ Vue component watch 26 | 27 | ### Vue Resource 28 | - `vueht` ⇢ `this.$http()` 29 | - `vuehtget` ⇢ `this.$http.get()` 30 | - `vuehtpost` ⇢ `this.$http.post()` 31 | 32 | ### Vue Router 33 | - `vuert` ⇢ `this.$route` 34 | - `vuertgo` ⇢ `this.$route.router.go()` 35 | 36 | ### Vuex 37 | - `vuex` ⇢ `Vuex instance` 38 | 39 | ### Directives: 40 | 41 | - `v-bind` ⇢ `:prop="data"` 42 | - `v-el` ⇢ `v-el:el-name` 43 | - `v-else` ⇢ `
` 44 | - `v-for` ⇢ `
` 45 | - `v-if` ⇢ `