summaryrefslogtreecommitdiffstats
path: root/ftplugin/latex-box
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/latex-box')
-rw-r--r--ftplugin/latex-box/common.vim8
-rw-r--r--ftplugin/latex-box/complete.vim8
-rw-r--r--ftplugin/latex-box/findmain.vim8
-rw-r--r--ftplugin/latex-box/folding.vim8
-rw-r--r--ftplugin/latex-box/latexmk.vim8
-rw-r--r--ftplugin/latex-box/mappings.vim8
-rw-r--r--ftplugin/latex-box/motion.vim8
7 files changed, 28 insertions, 28 deletions
diff --git a/ftplugin/latex-box/common.vim b/ftplugin/latex-box/common.vim
index 20488846..1eccacd4 100644
--- a/ftplugin/latex-box/common.vim
+++ b/ftplugin/latex-box/common.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
+ finish
+endif
+
" LaTeX Box common functions
" Error Format {{{
@@ -413,5 +415,3 @@ endfunction
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
-
-endif
diff --git a/ftplugin/latex-box/complete.vim b/ftplugin/latex-box/complete.vim
index aecb0d8d..365ea14f 100644
--- a/ftplugin/latex-box/complete.vim
+++ b/ftplugin/latex-box/complete.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
+ finish
+endif
+
" LaTeX Box completion
setlocal omnifunc=LatexBox_Complete
@@ -932,5 +934,3 @@ command! LatexLabels call <SID>PromptLabelList()
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
-
-endif
diff --git a/ftplugin/latex-box/findmain.vim b/ftplugin/latex-box/findmain.vim
index 3b81b0d7..a52d745e 100644
--- a/ftplugin/latex-box/findmain.vim
+++ b/ftplugin/latex-box/findmain.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
+ finish
+endif
+
" LatexBox_GetMainFileName: gets the name of the main file being compiled. {{{
" Description: returns the full path name of the main file.
" This function checks for the existence of a .latexmain file
@@ -62,5 +64,3 @@ function! LatexBox_GetMainFileName(...)
" certain platforms.
return lheadfile
endfunction
-
-endif
diff --git a/ftplugin/latex-box/folding.vim b/ftplugin/latex-box/folding.vim
index d6f36272..6311ebf2 100644
--- a/ftplugin/latex-box/folding.vim
+++ b/ftplugin/latex-box/folding.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
+ finish
+endif
+
" Folding support for LaTeX
"
@@ -378,5 +380,3 @@ endfunction
" {{{1 Footer
" vim:fdm=marker:ff=unix:ts=4:sw=4
-
-endif
diff --git a/ftplugin/latex-box/latexmk.vim b/ftplugin/latex-box/latexmk.vim
index 15db3686..bee760a5 100644
--- a/ftplugin/latex-box/latexmk.vim
+++ b/ftplugin/latex-box/latexmk.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
+ finish
+endif
+
" LaTeX Box latexmk functions
" Options and variables {{{
@@ -554,5 +556,3 @@ endif
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
-
-endif
diff --git a/ftplugin/latex-box/mappings.vim b/ftplugin/latex-box/mappings.vim
index 7141635e..ccfb5d8d 100644
--- a/ftplugin/latex-box/mappings.vim
+++ b/ftplugin/latex-box/mappings.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
+ finish
+endif
+
" LaTeX Box mappings
if exists("g:LatexBox_no_mappings")
@@ -106,5 +108,3 @@ vnoremap <buffer> <silent> [[ :<c-u>call <SID>LatexBoxNextSection(0,1,1)<CR>
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
-
-endif
diff --git a/ftplugin/latex-box/motion.vim b/ftplugin/latex-box/motion.vim
index 2053149c..b9614d72 100644
--- a/ftplugin/latex-box/motion.vim
+++ b/ftplugin/latex-box/motion.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
+ finish
+endif
+
" LaTeX Box motion functions
" Motion options {{{
@@ -544,5 +546,3 @@ command! LatexTOCToggle call LatexBox_TOC(1)
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
-
-endif