File: disabledby-closetag.diff

package info (click to toggle)
vim-scripts 20210124.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,100 kB
  • sloc: perl: 420; xml: 95; makefile: 24
file content (32 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (2)
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
## disabledby-closetag.diff by Stefano Zacchiroli <zack@debian.org>

Index: vim-scripts/closetag/macros/closetag.vim
===================================================================
--- vim-scripts.orig/closetag/macros/closetag.vim
+++ vim-scripts/closetag/macros/closetag.vim
@@ -121,6 +121,12 @@
 " User configurable settings
 "------------------------------------------------------------------------------
 
+" Has this already been loaded?
+if exists("loaded_closetag")
+    finish
+endif
+let loaded_closetag=1
+
 " if html, don't close certain tags.  Works best if ignorecase is set.
 " otherwise, capitalize these elements according to your html editing style
 if !exists("b:unaryTagsStack") || exists("b:closetag_html_style")
@@ -131,12 +137,6 @@
     endif
 endif
 
-" Has this already been loaded?
-if exists("loaded_closetag")
-    finish
-endif
-let loaded_closetag=1
-
 " set up mappings for tag closing
 inoremap <C-_> <C-R>=GetCloseTag()<CR>
 map <C-_> a<C-_><ESC>