From da79484986858be019ccd866ed7601081fa58288 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sun, 23 Apr 2017 21:41:40 +0100 Subject: [PATCH] Add latex support --- .gitmodules | 3 +++ .vimrc | 14 +++++++++++++- bundle/TeX-PDF | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) create mode 160000 bundle/TeX-PDF diff --git a/.gitmodules b/.gitmodules index 8cbc4ba..056134c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -34,3 +34,6 @@ [submodule "bundle/vim-markdown"] path = bundle/vim-markdown url = https://github.com/plasticboy/vim-markdown.git +[submodule "bundle/TeX-PDF"] + path = bundle/TeX-PDF + url = https://github.com/vim-scripts/TeX-PDF diff --git a/.vimrc b/.vimrc index 4a581a4..aecdd4f 100644 --- a/.vimrc +++ b/.vimrc @@ -88,6 +88,13 @@ function! NewHtml() "call NextMark() endfunction + +function! NewLatex() + read ~/Templates/latex + normal! ggdd + setlocal filetype=tex +endfunction + " Mappings {{{1 " Move lines up/down using arrow keys nnoremap ddp @@ -198,7 +205,12 @@ augroup new_html autocmd! autocmd BufNew,BufNewFile *.html call NewHtml() augroup END -" + +augroup new_latex + autocmd! + autocmd BufNew,BufNewFile *.tex,*.latex call NewLatex() +augroup END + augroup file_vim autocmd! autocmd FileType vim setlocal foldmethod=marker foldenable diff --git a/bundle/TeX-PDF b/bundle/TeX-PDF new file mode 160000 index 0000000..a8f00d5 --- /dev/null +++ b/bundle/TeX-PDF @@ -0,0 +1 @@ +Subproject commit a8f00d5023138b0ff67b41f1c84551041c3ec1ed