vimtex/ftplugin/tex.vim

80 lines
2.4 KiB
VimL
Raw Normal View History

2013-10-05 07:53:42 -04:00
" LaTeX plugin for Vim
"
" Maintainer: Karl Yngve Lervåg
" Email: karl.yngve@gmail.com
"
2013-10-05 08:07:56 -04:00
if exists('g:latex_enabled') && !g:latex_enabled
finish
endif
2013-10-05 07:53:42 -04:00
if exists('b:did_ftplugin')
finish
endif
let b:did_ftplugin = 1
2013-10-10 15:48:52 -04:00
" {{{1 Options
call latex#util#set_default('g:latex_build_dir', '.')
2013-10-05 07:53:42 -04:00
call latex#util#set_default('g:latex_complete_enabled', 1)
call latex#util#set_default('g:latex_complete_close_braces', 0)
2013-10-10 15:48:52 -04:00
call latex#util#set_default('g:latex_complete_patterns',
\ {
\ 'ref' : '\C\\v\?\(eq\|page\|[cC]\|labelc\)\?ref\*\?\_\s*{[^{}]*',
2013-10-05 07:53:42 -04:00
\ 'bib' : '\C\\\a*cite\a*\*\?\(\[[^\]]*\]\)*\_\s*{[^{}]*',
\ })
2013-10-10 15:48:52 -04:00
call latex#util#set_default('g:latex_errorformat_show_warnings', 1)
call latex#util#set_default('g:latex_errorformat_ignore_warnings',
\ [
\ 'Underfull',
\ 'Overfull',
\ 'specifier changed to',
\ ])
2013-10-05 07:53:42 -04:00
call latex#util#set_default('g:latex_fold_enabled', 1)
call latex#util#set_default('g:latex_fold_preamble', 1)
call latex#util#set_default('g:latex_fold_envs', 1)
call latex#util#set_default('g:latex_fold_parts',
\ [
2013-10-10 15:48:52 -04:00
\ "appendix",
\ "frontmatter",
\ "mainmatter",
\ "backmatter",
2013-10-05 07:53:42 -04:00
\ ])
call latex#util#set_default('g:latex_fold_sections',
\ [
2013-10-10 15:48:52 -04:00
\ "part",
\ "chapter",
\ "section",
\ "subsection",
\ "subsubsection",
2013-10-05 07:53:42 -04:00
\ ])
2013-10-10 15:48:52 -04:00
call latex#util#set_default('g:latex_indent_enabled', 1)
2013-10-05 07:53:42 -04:00
call latex#util#set_default('g:latex_latexmk_enabled', 1)
call latex#util#set_default('g:latex_latexmk_options', '')
call latex#util#set_default('g:latex_latexmk_output', 'pdf')
call latex#util#set_default('g:latex_latexmk_autojump', '0')
call latex#util#set_default('g:latex_main_tex_candidates',
\ [
2013-10-10 15:48:52 -04:00
\ 'main',
\ 'memo',
\ 'note',
\ 'report',
\ 'thesis',
2013-10-05 07:53:42 -04:00
\])
2013-10-10 15:48:52 -04:00
call latex#util#set_default('g:latex_mappings_enabled', 1)
2013-10-05 07:53:42 -04:00
call latex#util#set_default('g:latex_motion_enabled', 1)
call latex#util#set_default('g:latex_motion_matchparen', 1)
call latex#util#set_default('g:latex_toc_enabled', 1)
call latex#util#set_default('g:latex_toc_width', 30)
call latex#util#set_default('g:latex_toc_split_side', 'leftabove')
call latex#util#set_default('g:latex_toc_resize', 1)
call latex#util#set_default('g:latex_toc_hide_help', 0)
call latex#util#set_default('g:latex_toc_fold', 0)
call latex#util#set_default('g:latex_toc_fold_levels', 0)
2013-10-10 15:48:52 -04:00
call latex#util#set_default('g:latex_viewer', 'xdg-open')
2013-10-05 07:53:42 -04:00
" }}}1
call latex#init()
" vim:fdm=marker:ff=unix