Procházet zdrojové kódy

disable html autoclose tag vim plugin

In favour of learning to use sparkup.
Weiyi Lou před 13 roky
rodič
revize
50fc87c761
3 změnil soubory, kde provedl 10 přidání a 5 odebrání
  1. 1 1
      vim/bundle/fugitive
  2. 2 2
      vim/plugin/html_autoclosetag.vim
  3. 7 2
      vim/vimrc

+ 1 - 1
vim/bundle/fugitive

@@ -1 +1 @@
-Subproject commit 5298448e8895e70c401bbf394b8aa948135dd261
+Subproject commit 745ccf50662fc18c11e0c7a397b59e07a5a13141

+ 2 - 2
vim/plugin/html_autoclosetag.vim

@@ -5,14 +5,14 @@
 " Description:  Automatically closes HTML tag once you finish typing it with >
 
 if exists('b:mapped_auto_closetag') || &cp | finish | endif
-let b:mapped_auto_closetag = 1
+let g:mapped_auto_closetag = 1
 
 ino <buffer> <silent> < <><left>
 ino <buffer> <silent> > <c-r>=<SID>CloseTag()<cr>
 ino <buffer> <expr> <cr> <SID>Return()
 
 if exists('s:did_auto_closetag') | finish | endif
-let s:did_auto_closetag = 1
+let g:did_auto_closetag = 1
 
 " Gets the current HTML tag by the cursor.
 fun s:GetCurrentTag()

+ 7 - 2
vim/vimrc

@@ -231,10 +231,15 @@ let g:gundo_preview_bottom = 1
 
 
 """"""""" Surround
-"let g:loaded_surround = 1    " Disable tpope's surround
-let g:did_surrounding = 1    " Disable msander's surrounding (surround fork)
+"let g:loaded_surround = 1  " Disable tpope's surround
+let g:did_surrounding = 1  " Disable msander's surrounding (surround fork)
 
 
+""""""""" HTML Autoclose Tag
+" We are instead trying out sparkup
+let g:mapped_auto_closetag = 1  " Disable html autoclose plugin
+let g:did_auto_closetag = 1  " Disable html autoclose plugin
+
 """"""""
 "" Functions, the Givers of Power (in order of use)
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""