mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins
This commit is contained in:
@ -0,0 +1,52 @@
|
||||
# Snippet for bemjson. https://en.bem.info/platform/bemjson/
|
||||
|
||||
# Blocks
|
||||
snippet b
|
||||
{
|
||||
block : '${1:name}',
|
||||
content : [
|
||||
'${2:content}'
|
||||
]
|
||||
}
|
||||
|
||||
# btc - BEM block with text content
|
||||
snippet btc
|
||||
{
|
||||
block : '${1:name}',
|
||||
content: '${2:content}'
|
||||
}
|
||||
|
||||
# bwm - BEM block with modifier.
|
||||
snippet bwm
|
||||
{
|
||||
block : '${1:name}',
|
||||
mods: { ${2:modName}: '${3:modVal}' },
|
||||
content : [
|
||||
'${4:content}'
|
||||
]
|
||||
}
|
||||
|
||||
# Elems
|
||||
|
||||
# e - BEM elem
|
||||
snippet e
|
||||
{
|
||||
elem : '${1:name}',
|
||||
content : [
|
||||
'${2:content}'
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
# mo - Mods
|
||||
snippet mo
|
||||
mods : { ${1:modName} : '${2:modVal}' },
|
||||
|
||||
mi - BEM mix mod
|
||||
snippet mi
|
||||
mix : [ { ${1:block} : '${2:block}' } ],
|
||||
|
||||
# a - BEM attrs mod
|
||||
snippet a
|
||||
attrs : { ${1:attr} : '${2:val}' },
|
||||
|
@ -262,6 +262,9 @@ snippet cd
|
||||
# console.error
|
||||
snippet ce
|
||||
console.error(${0});
|
||||
# console.warn
|
||||
snippet cw
|
||||
console.warn(${0});
|
||||
# console.trace
|
||||
snippet ct
|
||||
console.trace(${0:label});
|
||||
|
Reference in New Issue
Block a user