From 6d4113e3c38ee376534321f9dc6791c1055f598a Mon Sep 17 00:00:00 2001 From: Israel Chauca Fuentes Date: Tue, 11 May 2010 01:40:15 -0500 Subject: [PATCH] Updated documentation about switch command. --- doc/delimitMate.txt | 7 +++++++ plugin/delimitMate.vim | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/delimitMate.txt b/doc/delimitMate.txt index b581225..5b7d055 100644 --- a/doc/delimitMate.txt +++ b/doc/delimitMate.txt @@ -332,6 +332,11 @@ e.g.: > Re-sets all the mappings used for this script, use it if any option has been changed or if the filetype option hasn't been set yet. +------------------------------------------------------------------------------ +:DelimitMateSwitch *:DelimitMateSwitch* + +Switches the plug-in on and off. + ------------------------------------------------------------------------------ :DelimitMateTest *:DelimitMateTest* @@ -487,6 +492,8 @@ This script was inspired by the auto-completion of delimiters of TextMate. 9. HISTORY *delimitMateHistory* Version Date Release notes ~ +|---------|------------|-----------------------------------------------------| + 2.2 2010-05-XX * - Added command to switch the plug-in on and off. |---------|------------|-----------------------------------------------------| 2.1 2010-05-10 * - Most of the functions have been moved to an autoload script to avoid loading unnecessary ones. diff --git a/plugin/delimitMate.vim b/plugin/delimitMate.vim index 9795a08..107707a 100644 --- a/plugin/delimitMate.vim +++ b/plugin/delimitMate.vim @@ -77,13 +77,14 @@ function! s:DelimitMateDo() "{{{ endtry endfunction "}}} -function! s:DelimitMateSwitch() +function! s:DelimitMateSwitch() "{{{ if b:delimitMate_enabled call delimitMate#UnMap() else call delimitMate#Init() endif -endfunction +endfunction "}}} + "}}} " Commands: {{{