1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-13 00:02:28 +00:00
dotfiles/vim/ftplugin/tex.vim
J.Fernando Sánchez 5934f9164b Added i3
2013-06-17 10:33:28 +02:00

27 lines
828 B
VimL

"setlocal formatoptions+=wa
function! SyncTexForward()
let execstr = "silent !evince ".LatexBox_GetOutputFile()."\\#src:".line(".")."%:p &"
exec execstr
endfunction
nmap <Leader>f :call SyncTexForward()<CR>
map <leader>ct yyp:s/begin/end/<CR>
"Latex
let g:tex_flavor = "latex"
set suffixes+=.log,.aux,.bbl,.blg,.idx,.ilg,.ind,.out,.pdf
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="evince"
let g:LatexBox_Folding=1
let tlist_tex_settings = 'latex;l:labels;s:sections;t:subsections;u:subsubsections'
if !exists("g:tex_comment_nospell") || !g:tex_comment_nospell
syn cluster texCommentGroup contains=texTodo,@Spell
else
syn cluster texCommentGroup contains=texTodo,@NoSpell
endif