aboutsummaryrefslogtreecommitdiff
path: root/files/vim
diff options
context:
space:
mode:
Diffstat (limited to 'files/vim')
-rw-r--r--files/vim/ftplugin/tex/tex.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/files/vim/ftplugin/tex/tex.vim b/files/vim/ftplugin/tex/tex.vim
index b42e44a..e440561 100644
--- a/files/vim/ftplugin/tex/tex.vim
+++ b/files/vim/ftplugin/tex/tex.vim
@@ -9,11 +9,13 @@ setlocal textwidth=80
nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/tex/tex.vim<CR>
nnoremap <buffer> <leader>e :Errors<CR>
" proselint not enabled by default (it's slow)
-nnoremap <buffer> <leader>sp :SyntasticCheck proselint<CR>
+"nnoremap <buffer> <leader>sp :SyntasticCheck proselint<CR>
-nnoremap <buffer> <leader>temp :-1r ~/.vim/ftplugin/tex/snips/template.txt<CR>Gdd?<+++><CR>cf>
+nnoremap <buffer> <leader>c :w<Enter>:! toPDF.sh %<CR>
+nnoremap <buffer> <leader>o :w<Enter>:! toPDF.sh -o %<CR><CR>
+
+nnoremap <buffer> <leader>temp :-1r ~/.vim/ftplugin/tex/snips/template.txt<CR>/<+++><CR>cf>
-nnoremap <buffer> <leader>c :w<Enter>:! pdflatex --shell-escape %<Enter>
inoremap <buffer> <leader>ldocclass \documentclass{}<Esc>o<++><Esc>k$i
inoremap <buffer> <leader>lpckg \usepackage{}<Esc>o<++><Esc>k$i
inoremap <buffer> <leader>lbdoc \begin{document}<Esc>o<Enter><Enter><Enter>\end{document}<Esc>kkI