Add some quicktex shortcuts

master
Jonathan Hodgson 8 years ago
parent 42dd3ce731
commit 203796cd40
  1. 12
      .vimrc

@ -82,6 +82,7 @@ let g:airline_theme='dark'
" Quick tex options {{{2
" HTML {{{3
let g:quicktex_html = {
\' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>",
\';b' : "<b><+++></b> <++>",
@ -96,11 +97,14 @@ let g:quicktex_html = {
\';li' : "<li><++></li>",
\}
" Latex Normal {{{3
let g:quicktex_tex = {
\' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>",
\';b' : "\\textbf{<+++>} <++>",
\';e' : "\\emph{<+++>} <++>",
\'prf' : "\\begin{proof}\<CR><+++>\<CR>\\end{proof}",
\';m' : "$<+++>$ <++>",
\';M' : "\\[ <+++> \\] <++>",
\';ma' : "$a$ ",
\';mb' : "$b$ ",
\';mc' : "$c$ ",
@ -155,31 +159,31 @@ let g:quicktex_tex = {
\';mZ' : "$Z$ ",
\}
" Latex Maths {{{3
let g:quicktex_math = {
\' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>",
\';b' : "\\mathbf{<+++>} <++>",
\';B' : "\\mathbb{<+++>} <++>",
\'fr' : '\mathcal{R} ',
\'eq' : '= ',
\'set' : '\{ <+++> \} <++>',
\'frac' : '\frac{<+++>}{<++>} <++>',
\'one' : '1 ',
\'st' : ': ',
\'in' : '\in ',
\'bn' : '\mathbb{N} ',
\}
" Markdown {{{3
let g:quicktex_markdown = {
\' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>",
\';b' : "**<+++>** <++>",
\';i' : "*<+++>* <++>",
\';a' : "[<+++>](<+url+>) <++>",
\}
let g:quicktex_pandoc = g:quicktex_markdown
"}}}
"}}}
" Functions {{{1

Loading…
Cancel
Save