Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix HTML snippets including attributes in end tag

  • Loading branch information...
commit fa30717ad0bc2e5f1308bef38a8ca8c9e653c95b 1 parent 4041918
Jimmy Mabey authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 .vim/snippets/html.snippets
View
4 .vim/snippets/html.snippets
@@ -13,13 +13,13 @@ endsnippet
# Tags
snippet t "Inline element" i
-<${1:tag}>$2</$1>
+<${1:tag}>$2</`!p snip.rv = t[1].split(' ', 2)[0]`>
endsnippet
snippet T "Block element" i
<${1:tag}>
$2
-</$1>
+</`!p snip.rv = t[1].split(' ', 2)[0]`>
endsnippet
snippet a "Attribute"
Please sign in to comment.
Something went wrong with that request. Please try again.