File: disabledby.diff

package info (click to toggle)
vim-latexsuite 1%3A1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,336 kB
  • ctags: 793
  • sloc: xml: 5,179; python: 928; makefile: 92; perl: 59; sh: 14
file content (107 lines) | stat: -rw-r--r-- 2,973 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Description: support disabling the whole latex-suite by defining the 'did_latexSuite_disabled' global variable
Author: Stefano Zacchiroli <zack@debian.org>

--- a/compiler/tex.vim
+++ b/compiler/tex.vim
@@ -59,6 +59,10 @@
 "   1. menu items for dynamically selecting a ignore warning level.
 " }}}
 
+if exists('did_latexSuite_disabled')
+  finish
+endif
+
 " avoid reinclusion for the same buffer. keep it buffer local so it can be
 " externally reset in case of emergency re-sourcing.
 if exists('b:doneTexCompiler') && !exists('b:forceRedoTexCompiler')
--- a/ftplugin/bib_latexSuite.vim
+++ b/ftplugin/bib_latexSuite.vim
@@ -7,6 +7,10 @@
 " 	bibliographic entries.
 "
 
+if exists('did_latexSuite_disabled')
+  finish
+endif
+
 " source main.vim because we need a few functions from it.
 runtime ftplugin/latex-suite/main.vim
 " Disable smart-quotes because we need to enter real quotes in bib files.
--- a/ftplugin/tex_latexSuite.vim
+++ b/ftplugin/tex_latexSuite.vim
@@ -3,6 +3,10 @@
 "	Maintainer: Srinath Avadhanula
 "		 Email: srinath@fastmail.fm
 
+if exists('did_latexSuite_disabled')
+  finish
+endif
+
 if !exists('s:initLatexSuite')
 	let s:initLatexSuite = 1
 	exec 'so '.fnameescape(expand('<sfile>:p:h').'/latex-suite/main.vim')
--- a/indent/tex.vim
+++ b/indent/tex.vim
@@ -98,6 +98,10 @@
 endif
 let b:did_indent = 1
 
+if exists('did_latexSuite_disabled')
+  finish
+endif
+
 " Delete the next line to avoid the special indention of items
 if !exists("g:tex_indent_items")
     let g:tex_indent_items = 1
--- a/plugin/SyntaxFolds.vim
+++ b/plugin/SyntaxFolds.vim
@@ -88,6 +88,10 @@
 " Nested folds can be created by successive calls to AddSyntaxFoldItem(). See
 " MakeTexFolds() for an idea of how this works for latex files.
 
+if exists('did_latexSuite_disabled')
+  finish
+endif
+
 " Function: AddSyntaxFoldItem (start, end, startoff, endoff [, skipStart, skipEnd]) {{{
 function! AddSyntaxFoldItem(start, end, startoff, endoff, ...)
 	if a:0 > 0
--- a/plugin/filebrowser.vim
+++ b/plugin/filebrowser.vim
@@ -13,6 +13,10 @@
 " 		(Both these regexps are '' by default which means no filtering is
 " 		done).
 
+if exists('did_latexSuite_disabled')
+  finish
+endif
+
 " line continuation used here.
 let s:save_cpo = &cpo
 set cpo&vim
--- a/plugin/imaps.vim
+++ b/plugin/imaps.vim
@@ -94,6 +94,10 @@
 "--------------------------------------%<--------------------------------------
 " }}}
 
+if exists('did_latexSuite_disabled')
+  finish
+endif
+
 " line continuation used here.
 let s:save_cpo = &cpo
 set cpo&vim
--- a/plugin/remoteOpen.vim
+++ b/plugin/remoteOpen.vim
@@ -28,6 +28,10 @@
 " Ofcourse, this requires vim with +clientserver. If not, then RemoteOpen just
 " opens in the present session.
 
+if exists('did_latexSuite_disabled')
+  finish
+endif
+
 " Enclose <args> in single quotes so it can be passed as a function argument.
 com! -nargs=1 RemoteOpen :call RemoteOpen('<args>')
 com! -nargs=? RemoteInsert :call RemoteInsert('<args>')