Add latex support

This commit is contained in:
Jonathan Hodgson 2017-04-23 21:41:40 +01:00
parent cb8c29e935
commit da79484986
3 changed files with 17 additions and 1 deletions

3
.gitmodules vendored
View file

@ -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

14
.vimrc
View file

@ -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 <Down> 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

1
bundle/TeX-PDF Submodule

@ -0,0 +1 @@
Subproject commit a8f00d5023138b0ff67b41f1c84551041c3ec1ed