X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=.vim%2Fmysnippets%2Fhtml.snippets;h=2cea21b6679ce742c4760421a622bae618dedae0;hp=0a508e59acb06bc44dbd737c9739ae40e34f1fd6;hb=90d83c2c3077a0e636e6d4ac2322a02865930d3f;hpb=fdcd4945ebca688bd20c91247331518b29248f7e diff --git a/.vim/mysnippets/html.snippets b/.vim/mysnippets/html.snippets index 0a508e5..2cea21b 100644 --- a/.vim/mysnippets/html.snippets +++ b/.vim/mysnippets/html.snippets @@ -1,6 +1,6 @@ -snippet `<[a-z]+[0-9]*` "HTML tag expand" r -<`!p snip.rv = match.group()[1:]`>$0 -endsnippet +# snippet `<[a-z]+[0-9]*` "HTML tag expand" r +# <`!p snip.rv = match.group()[1:]`>$0 +# endsnippet snippet html "html template" w @@ -15,3 +15,44 @@ snippet html "html template" w endsnippet + +# snippet `<(.+)` "tag" rw +# <> +# endsnippet + +snippet p "p tag" w +

$0

+endsnippet + +snippet div "div tag" w +
$0
+endsnippet + +snippet a "a tag" w +$0 +endsnippet + +snippet code "code tag" w +$0 +endsnippet + +snippet img "img tag" w + +endsnippet + +snippet '(h[0-9])' "h tag" rw +`!p +snip.rv = "<{0}>".format(match.group(1)) +` +endsnippet + +snippet bigcode "bigcode block" w +

+$0
+
+endsnippet + +snippet tag "html safe tag" w +<$1>$0</$1> +endsnippet +