" Set default compile target type as 'pdf'
let g:Tex_DefaultTargetFormat = 'pdf'
--- a/.vim/ftplugin/latex-suite/envmacros.vim
+++ b/.vim/ftplugin/latex-suite/envmacros.vim
- imap <buffer> <M-i> <Plug>Tex_InsertItemOnThisLine
+ imap <buffer> <M-o> <Plug>Tex_InsertItemOnThisLine
+ set <M-o>=^[o
"############################################################################################################
" VIM-LATEX
"############################################################################################################
" REQUIRED. This makes vim invoke Latex-Suite when you open a tex file.
filetype plugin on
" IMPORTANT: win32 users will need to have 'shellslash' set so that latex
" can be called correctly.
" set shellslash
" IMPORTANT: grep will sometimes skip displaying the file name if you
" search in a singe file. This will confuse Latex-Suite. Set your grep
" program to always generate a file-name.
set grepprg=grep\ -nH\ $*
" OPTIONAL: This enables automatic indentation as you type.
filetype indent on
" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
" 'plaintex' instead of 'tex', which results in vim-latex not being loaded.
" The following changes the default filetype back to 'tex':
let g:tex_flavor='latex'
" Use <C-l> for jump formward instead of <C-J>
imap <C-l> <Plug>IMAP_JumpForward
nmap <C-l> <Plug>IMAP_JumpForward
vmap <C-l> <Plug>IMAP_JumpForward
:let g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode '
let g:Tex_MainFileExpression = 'MainFile(modifier)'
--- a/.vim/ftplugin/latex-suite/folding.vim
+++ b/.vim/ftplugin/latex-suite/folding.vim
@@ -237,16 +237,16 @@ function! MakeTexFolds(force)
" }}}
" {{{ items
- if g:Tex_FoldedMisc =~ '\<item\>'
- call AddSyntaxFoldItem (
- \ '^\s*\\item',
- \ '^\s*\\item\|^\s*\\end{\(enumerate\|itemize\|description\)}',
- \ 0,
- \ -1,
- \ '^\s*\\begin{\(enumerate\|itemize\|description\)}',
- \ '^\s*\\end{\(enumerate\|itemize\|description\)}'
- \ )
- endif
+ " if g:Tex_FoldedMisc =~ '\<item\>'
+ " call AddSyntaxFoldItem (
+ " \ '^\s*\\item',
+ " \ '^\s*\\item\|^\s*\\end{\(enumerate\|itemize\|description\)}',
+ " \ 0,
+ " \ -1,
+ " \ '^\s*\\begin{\(enumerate\|itemize\|description\)}',
+ " \ '^\s*\\end{\(enumerate\|itemize\|description\)}'
+ " \ )
+ " endif
" }}}
" {{{ title