2013-02-25 10:03:23 +00:00
|
|
|
"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
|
|
|
|
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"
|
2013-06-05 16:45:05 +00:00
|
|
|
let g:LatexBox_viewer="evince"
|
2013-06-17 08:33:28 +00:00
|
|
|
let g:LatexBox_Folding=1
|
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
|