From 203796cd403892e8be46db66937efbce848a8fac Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 9 May 2017 12:06:22 +0100 Subject: [PATCH 1/2] Add some quicktex shortcuts --- .vimrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index 3d82068..70acc0b 100644 --- a/.vimrc +++ b/.vimrc @@ -82,6 +82,7 @@ let g:airline_theme='dark' " Quick tex options {{{2 +" HTML {{{3 let g:quicktex_html = { \' ' : "\/<+.*+>\\"_c/+>/e\", \';b' : "<+++> <++>", @@ -96,11 +97,14 @@ let g:quicktex_html = { \';li' : "
  • <++>
  • ", \} +" Latex Normal {{{3 let g:quicktex_tex = { \' ' : "\/<+.*+>\\"_c/+>/e\", \';b' : "\\textbf{<+++>} <++>", \';e' : "\\emph{<+++>} <++>", \'prf' : "\\begin{proof}\<+++>\\\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 = { \' ' : "\/<+.*+>\\"_c/+>/e\", \';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 = { \' ' : "\/<+.*+>\\"_c/+>/e\", \';b' : "**<+++>** <++>", \';i' : "*<+++>* <++>", \';a' : "[<+++>](<+url+>) <++>", \} - let g:quicktex_pandoc = g:quicktex_markdown "}}} - +"}}} " Functions {{{1 From 78036e43daf5364ffa91d6d04e2a0c8309f01c19 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 9 May 2017 12:56:29 +0100 Subject: [PATCH 2/2] Add vim-rmarkdown --- .gitmodules | 3 +++ bundle/vim-rmarkdown | 1 + 2 files changed, 4 insertions(+) create mode 160000 bundle/vim-rmarkdown diff --git a/.gitmodules b/.gitmodules index 963e405..63416f1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -43,3 +43,6 @@ [submodule "bundle/goyo.vim"] path = bundle/goyo.vim url = https://github.com/junegunn/goyo.vim +[submodule "bundle/vim-rmarkdown"] + path = bundle/vim-rmarkdown + url = https://github.com/vim-pandoc/vim-rmarkdown diff --git a/bundle/vim-rmarkdown b/bundle/vim-rmarkdown new file mode 160000 index 0000000..8c1c397 --- /dev/null +++ b/bundle/vim-rmarkdown @@ -0,0 +1 @@ +Subproject commit 8c1c3979554bdff08239a2fe441af4d7dfeea8bc