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