Add latex support

master
Jonathan Hodgson 8 years ago
parent cb8c29e935
commit da79484986
  1. 3
      .gitmodules
  2. 14
      .vimrc
  3. 1
      bundle/TeX-PDF

3
.gitmodules vendored

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

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

@ -0,0 +1 @@
Subproject commit a8f00d5023138b0ff67b41f1c84551041c3ec1ed
Loading…
Cancel
Save