Updated documentation about switch command.

This commit is contained in:
Israel Chauca Fuentes
2010-05-11 01:40:15 -05:00
parent 8d720b8932
commit 6d4113e3c3
2 changed files with 10 additions and 2 deletions

View File

@@ -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.

View File

@@ -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: {{{