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
+7
View File
@@ -332,6 +332,11 @@ e.g.: >
Re-sets all the mappings used for this script, use it if any option has been 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. changed or if the filetype option hasn't been set yet.
------------------------------------------------------------------------------
:DelimitMateSwitch *:DelimitMateSwitch*
Switches the plug-in on and off.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
:DelimitMateTest *:DelimitMateTest* :DelimitMateTest *:DelimitMateTest*
@@ -487,6 +492,8 @@ This script was inspired by the auto-completion of delimiters of TextMate.
9. HISTORY *delimitMateHistory* 9. HISTORY *delimitMateHistory*
Version Date Release notes ~ 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 2.1 2010-05-10 * - Most of the functions have been moved to an
autoload script to avoid loading unnecessary ones. autoload script to avoid loading unnecessary ones.
+3 -2
View File
@@ -77,13 +77,14 @@ function! s:DelimitMateDo() "{{{
endtry endtry
endfunction "}}} endfunction "}}}
function! s:DelimitMateSwitch() function! s:DelimitMateSwitch() "{{{
if b:delimitMate_enabled if b:delimitMate_enabled
call delimitMate#UnMap() call delimitMate#UnMap()
else else
call delimitMate#Init() call delimitMate#Init()
endif endif
endfunction endfunction "}}}
"}}} "}}}
" Commands: {{{ " Commands: {{{