Add option to turn off vim-latex

This commit is contained in:
Karl Yngve Lervåg 2013-10-05 14:07:56 +02:00
parent 7808e59239
commit 2cbc4b5ab1
2 changed files with 9 additions and 0 deletions

View File

@ -187,6 +187,7 @@ descriptions also list the default values.
Overview:~
|g:latex_enabled|
|g:latex_build_dir|
|g:latex_complete_close_braces|
|g:latex_complete_enabled|
@ -220,6 +221,10 @@ Overview:~
------------------------------------------------------------------------------
Detailed descriptions and default values:~
*g:latex_enabled*
If this variable exists and is 0, then |vim-latex| is completely disabled. By
default, it is not defined.
*g:latex_build_dir*
Set this variable in case a dedicated build dir is used with latexmk/latex
compilations. >

View File

@ -4,6 +4,10 @@
" Email: karl.yngve@gmail.com
"
if exists('g:latex_enabled') && !g:latex_enabled
finish
endif
if exists('b:did_ftplugin')
finish
endif