From 641cde6401d0717d35a33e41288d23d34cf7fb35 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sat, 15 Jul 2017 12:33:34 +0100 Subject: [PATCH] Work on CSS snippets --- .vimrc | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.vimrc b/.vimrc index cb7d0e0..31c392c 100644 --- a/.vimrc +++ b/.vimrc @@ -103,6 +103,50 @@ let g:quicktex_html = { \';ol' : "
    \
  1. <+++>
  2. \
\\<++>", \';li' : "
  • <++>
  • ", \} +" CSS {{{3 +let g:quicktex_css = { + \' ' : "\/<+.*+>\\"_c/+>/e\", + \ + \'w' : "width: <+++>;\<++>", + \'h' : "height: <+++>;\<++>", + \'mw' : "max-width: <+++>;\<++>", + \'mh' : "max-height: <+++>;\<++>", + \'t' : "top: <+++>;\<++>", + \'b' : "bottom: <+++>;\<++>", + \'l' : "left: <+++>;\<++>", + \'r' : "right: <+++>;\<++>", + \'pos' : "position: <+++>;\<++>", + \ + \'m' : "margin: <+++>;\<++>", + \'mt' : "margin-top: <+++>;\<++>", + \'mb' : "margin-bottom: <+++>;\<++>", + \'ml' : "margin-left: <+++>;\<++>", + \'mr' : "margin-right: <+++>;\<++>", + \ + \'p' : "padding: <+++>;\<++>", + \'pt' : "padding-top: <+++>;\<++>", + \'pb' : "padding-bottom: <+++>;\<++>", + \'pl' : "padding-left: <+++>;\<++>", + \'pr' : "padding-right: <+++>;\<++>", + \ + \'bor' : "border: <+++>;\<++>", + \'bort' : "border-top: <+++>;\<++>", + \'borb' : "border-bottom: <+++>;\<++>", + \'borl' : "border-left: <+++>;\<++>", + \'borr' : "border-right: <+++>;\<++>", + \ + \';abs' : "position: absolute;\<++>", + \';rel' : "position: relative;\<++>", + \';fix' : "position: fixed;\<++>", + \ + \';block' : "position: block;\<++>", + \';inl' : "position: inline;\<++>", + \';inb' : "position: inline-block;\<++>", + \';flex' : "position: flex;\<++>", + \';inf' : "position: inline-flex;\<++>", + \ +\} +let g:quicktex_less = g:quicktex_css " Latex Normal {{{3 let g:quicktex_tex = {