1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-23 20:52:28 +00:00
dotfiles/vim/ftplugin/tex.vim

30 lines
935 B
VimL
Raw Normal View History

"setlocal formatoptions+=wa
2012-12-01 04:11:06 +00:00
function! SyncTexForward()
2013-06-05 16:45:05 +00:00
let execstr = "silent !evince ".LatexBox_GetOutputFile()."\\#src:".line(".")."%:p &"
2012-12-01 04:11:06 +00:00
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
2014-03-04 14:57:06 +00:00
"let g:LatexBox_latexmk_options="-pvc"
let g:LatexBox_latexmk_async=1
let g:LatexBox_latexmk_preview_continuously=1
"let g:Tex_CompileRule_pdf = 'pdflatex --synctex=1 -interaction=nonstopmode $*'
2013-03-07 15:25:52 +00:00
let g:LatexBox_output_type="pdf"
let g:LatexBox_viewer="xdg-open"
2013-06-17 08:33:28 +00:00
let g:LatexBox_Folding=1
let g:LatexBox_quickfix=2
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'
2013-06-14 14:06:14 +00:00
if !exists("g:tex_comment_nospell") || !g:tex_comment_nospell
syn cluster texCommentGroup contains=texTodo,@Spell
else
syn cluster texCommentGroup contains=texTodo,@NoSpell
endif