1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-24 05:02:29 +00:00
dotfiles/vim/ftplugin/tex.vim

21 lines
634 B
VimL
Raw Normal View History

"setlocal formatoptions+=wa
2012-12-01 04:11:06 +00:00
function! SyncTexForward()
let execstr = "silent !okular --unique ".LatexBox_GetOutputFile()."\\#src:".line(".")."%:p &"
exec execstr
endfunction
nmap <Leader>f :call SyncTexForward()<CR>
map <leader>ct yyp:s/begin/end/<CR>
2013-03-07 15:25:52 +00:00
"Latex
let g:tex_flavor = "latex"
set suffixes+=.log,.aux,.bbl,.blg,.idx,.ilg,.ind,.out,.pdf
2012-12-01 04:11:06 +00:00
2013-03-07 15:25:52 +00:00
let g:LatexBox_latexmk_options="-pvc"
let g:Tex_CompileRule_pdf = 'pdflatex --synctex=1 -interaction=nonstopmode $*'
let g:LatexBox_output_type="pdf"
let g:LatexBox_viewer="okular --unique"
2012-12-01 04:11:06 +00:00
2013-03-07 15:25:52 +00:00
let tlist_tex_settings = 'latex;l:labels;s:sections;t:subsections;u:subsubsections'