Skip to content

Instantly share code, notes, and snippets.

@eltonlaw
Created December 20, 2017 18:02
Show Gist options
  • Save eltonlaw/b2c4ae46a6ebecfed1769996773f93c4 to your computer and use it in GitHub Desktop.
Save eltonlaw/b2c4ae46a6ebecfed1769996773f93c4 to your computer and use it in GitHub Desktop.
" ~/.vim/ftplugin/tex.vim
"" vim-latex
" 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: 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'
let g:Tex_CustomTemplateFolder='./Tex_Custom_Templates'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment