From 866342999873c347511d725ed6c1b7425cf2d301 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 5 Mar 2018 13:36:18 +0000 Subject: [PATCH] Add some snippets --- .vimrc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.vimrc b/.vimrc index 3d76524..f4b419a 100644 --- a/.vimrc +++ b/.vimrc @@ -161,9 +161,21 @@ let g:quicktex_css = { \';flex' : "display: flex;\<++>", \';inf' : "display: inline-flex;\<++>", \ + \'include' : "@import \"<+++>\";\<++>", + \'@include' : "@import \"<+++>\";\<++>", + \'require' : "@import \"<+++>\";\<++>", + \'@require' : "@import \"<+++>\";\<++>", + \'import' : "@import \"<+++>\";\<++>" \} let g:quicktex_less = g:quicktex_css +" JS {{{3 +let g:quicktex_javascript = { + \' ' : "\/<+.*+>\\"_c/+>/e\", + \ + \';fun' : "function <+++>(<++>){\<++>\}", + \ +\} " Latex Normal {{{3 let g:quicktex_tex = { \' ' : "\/<+.*+>\\"_c/+>/e\", @@ -247,6 +259,14 @@ let g:quicktex_markdown = { \';a' : "[<+++>](<+url+>) <++>", \} let g:quicktex_pandoc = g:quicktex_markdown +" PHP {{{3 +let g:quicktex_php = { + \' ' : "\/<+.*+>\\"_c/+>/e\", + \';ob' : "ob_start();\<+++>\ob_get_clean();", + \';vd' : "var_dump(<+++>);", + \';obvd' : "ob_start();\var_dump(<+++>);\echo htmlspecialchars(ob_get_clean());", + \';nl' : "echo '
';", +\} "}}} @@ -274,6 +294,12 @@ function! NewLatex() setlocal filetype=tex endfunction +" Commands {{{1 + +"gets the wp salts +command WpSalts :r! curl https://api.wordpress.org/secret-key/1.1/salt 2> /dev/null + + " Mappings {{{1 " Move lines up/down/left/right using arrow keys nnoremap ddp