This commit is contained in:
ManjaroOne666 2018-10-17 12:07:10 +01:00
parent 7c7d6e34c0
commit 5f735ce091
6 changed files with 57 additions and 11 deletions

View File

@ -1,5 +1,5 @@
snippet @m "@media ..." snippet @m "@media ..."
@media ($(1{min}-width: $2${3:em}) { @media (${1:min}-${2:width}: $3) {
$0 $0
} }
endsnippet endsnippet
@ -22,33 +22,46 @@ endsnippet
snippet w "width: ;" snippet w "width: ;"
width: ${1:100%}; width: ${1:100%};
$0
endsnippet endsnippet
snippet h "height: ;" snippet h "height: ;"
height: ${1:100%}; height: ${1:100%};
$0 endsnippet
snippet maxw "max-width: ;"
max-width: ${1:100%};
endsnippet
snippet maxh "max-height: ;"
max-height: ${1:100%};
endsnippet
snippet minw "min-width: ;"
min-width: ${1:100%};
endsnippet
snippet minh "min-height: ;"
min-height: ${1:100%};
endsnippet endsnippet
snippet bgc "background-color: ;" snippet bgc "background-color: ;"
background-color: ${1:transparent}; background-color: ${1:transparent};
$0
endsnippet endsnippet
snippet t "top: ... ;" snippet t "top: ... ;"
top: ${1:100%}; top: ${1:0};
endsnippet endsnippet
snippet b "bottom: ... ;" snippet b "bottom: ... ;"
bottom: ${1:100%}; bottom: ${1:0};
endsnippet endsnippet
snippet l "left: ... ;" snippet l "left: ... ;"
left: ${1:100%}; left: ${1:0};
endsnippet endsnippet
snippet r "right: ... ;" snippet r "right: ... ;"
right: ${1:100%}; right: ${1:0};
endsnippet endsnippet
snippet m "margin: ... ;" snippet m "margin: ... ;"
@ -94,3 +107,7 @@ endsnippet
snippet fs "font-size: ... ;" snippet fs "font-size: ... ;"
font-size: ${1:1}${2:rem}; font-size: ${1:1}${2:rem};
endsnippet endsnippet
snippet o "opacity: ... ;"
opacity: ${1:0};
endsnippet

View File

@ -0,0 +1,2 @@
set includeexpr=substitute(substitute(substitute(v:fname,'\%(.*/\|^\)\zs','_',''),'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','')

View File

@ -6,7 +6,7 @@ syn match vueDirective "\(^\|\s\)\zs[v:][-:.0-9_a-z]*" containedin=htmlTag,v
syn match vueEvent "\(^\|\s\)\zs[@][-:.0-9_a-z]*" containedin=htmlTag,vueTag,htmlTagN nextgroup=vueEventValue syn match vueEvent "\(^\|\s\)\zs[@][-:.0-9_a-z]*" containedin=htmlTag,vueTag,htmlTagN nextgroup=vueEventValue
syn match vueConditional "\<v-else" containedin=htmlTag,vueTag,htmlTagN syn match vueConditional "\<v-else" containedin=htmlTag,vueTag,htmlTagN
syn match vueConditional "\<v-if\|\<v-show" containedin=htmlTag,vueTag,htmlTagN nextgroup=vueConditionalValue syn match vueConditional "\<v-if\|\<v-show" containedin=htmlTag,vueTag,htmlTagN nextgroup=vueConditionalValue
syn match vueSlot +\<slot=+he=e-1 containedin=htmlTag,vueTag,htmlTagN nextgroup=vueSlotValue syn match vueSlot +\<slot=+he=e-1 containedin=htmlTag,vueTag,htmlTagN nextgroup=vueSlotName
syn match vueFor "\<v-for" containedin=htmlTag,vueTag,htmlTagN nextgroup=vueForValue syn match vueFor "\<v-for" containedin=htmlTag,vueTag,htmlTagN nextgroup=vueForValue
syn match vueRef "\(^\|\s\)\zs:\?ref" containedin=htmlTag,vueTag,htmlTagN nextgroup=vueRefValue syn match vueRef "\(^\|\s\)\zs:\?ref" containedin=htmlTag,vueTag,htmlTagN nextgroup=vueRefValue
@ -27,8 +27,8 @@ syn region vueForValue contained start=+="+hs=s+2 end=+"+he=e-1
syn region vueForValue contained start=+='+hs=s+2 end=+'+he=e-1 syn region vueForValue contained start=+='+hs=s+2 end=+'+he=e-1
syn match vueRefValue contained +="[-:.0-9_a-z]*"+hs=s+2,he=e-1 syn match vueRefValue contained +="[-:.0-9_a-z]*"+hs=s+2,he=e-1
syn match vueRefValue contained +='[-:.0-9_a-z]*'+hs=s+2,he=e-1 syn match vueRefValue contained +='[-:.0-9_a-z]*'+hs=s+2,he=e-1
syn match vueSlotValue contained +"[-:.0-9_a-z]*"+hs=s+1,he=e-1 syn match vueSlotName contained +"[-:.0-9_a-z]*"+hs=s+1,he=e-1
syn match vueSlotValue contained +'[-:.0-9_a-z]*'+hs=s+1,he=e-1 syn match vueSlotName contained +'[-:.0-9_a-z]*'+hs=s+1,he=e-1
syn match vueComponentName contained "\(<\|</\)\zsvue-[0-9A-Za-z\-]\+\|\(<\|</\)\zs\u\+[0-9A-Za-z]\+\ze\(\s\|>\)" containedin=htmlTag,vueTag,htmlTagN syn match vueComponentName contained "\(<\|</\)\zsvue-[0-9A-Za-z\-]\+\|\(<\|</\)\zs\u\+[0-9A-Za-z]\+\ze\(\s\|>\)" containedin=htmlTag,vueTag,htmlTagN
syn region vueLink start="<router-link\>[^>]*" end="</router-link>"me=e-14 contains=@Spell,vueTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLeadingSpace,javaScript,@htmlPreproc,vueComponentName syn region vueLink start="<router-link\>[^>]*" end="</router-link>"me=e-14 contains=@Spell,vueTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLeadingSpace,javaScript,@htmlPreproc,vueComponentName
@ -37,10 +37,15 @@ syn match vueComponentName contained "router-link" containedin=vueTag,htmlEndTag
hi! def link vueLink htmlLink hi! def link vueLink htmlLink
syn match vueDynamicComponent contained "\<component\>\|\<keep-alive\>\|\<router-link\>" containedin=htmlTag,vueTag,htmlTagN syn match vueDynamicComponent contained "\<component\>\|\<keep-alive\>\|\<router-link\>" containedin=htmlTag,vueTag,htmlTagN
syn match vueTransitionComponent contained "\<transition\>" containedin=htmlTag,vueTag,htmlTagN nextgroup=vueTransitionName,vueTransitionMode syn match vueTransitionComponent contained "\<transition\>" containedin=htmlTag,vueTag,htmlTagN nextgroup=vueTransitionName,vueTransitionMode
syn region vueTransitionName contained start=+\sname="+hs=s+7 end=+"+he=e-1 containedin=htmlTag,vueTag,htmlTagN syn region vueTransitionName contained start=+\sname="+hs=s+7 end=+"+he=e-1 containedin=htmlTag,vueTag,htmlTagN
syn region vueTransitionMode contained start=+\smode="+hs=s+7 end=+"+he=e-1 containedin=htmlTag,vueTag,htmlTagN syn region vueTransitionMode contained start=+\smode="+hs=s+7 end=+"+he=e-1 containedin=htmlTag,vueTag,htmlTagN
syn region vueSlotTag start="<slot\>[^>]*" end="</slot>"me=e-14 contains=@Spell,vueTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLeadingSpace,javaScript,@htmlPreproc,vueSlotTagName
syn match vueSlotTagName contained "slot" containedin=vueTag,htmlEndTag nextgroup=vueSlotName
syn region vueSlotName contained start=+\sname="+hs=s+7 end=+"+he=e-1 containedin=htmlTag,vueTag,htmlTagN
syn keyword vueTagSpecial contained template script style containedin=htmlTagN syn keyword vueTagSpecial contained template script style containedin=htmlTagN
syn keyword htmlArg contained scoped ts syn keyword htmlArg contained scoped ts

2
vim/ftplugin/vue.vim Normal file
View File

@ -0,0 +1,2 @@
set includeexpr=substitute(substitute(v:fname,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','')
set suffixesadd=.js,.vue,.scss

20
vim/spell/en.utf-8.add Normal file
View File

@ -0,0 +1,20 @@
Giana
WooCommerce
MacFarley's
Callum
Connor
MacFarleys
Stantham
LLP
Pascutti
Heerlen
Lecadini
#efretina
Defretina's
Lecadina
Defretina/!
Defretini
Defretini's
Aanajse
Fotostudio
EUR

BIN
vim/spell/en.utf-8.add.spl Normal file

Binary file not shown.