Merge pull request #67 from tmhedberg/master

Option to disable delimitMate in all buffers by default
This commit is contained in:
Israel Chauca Fuentes
2012-02-05 21:19:50 -08:00
3 changed files with 13 additions and 2 deletions

View File

@@ -387,7 +387,7 @@ function! delimitMate#ExpandReturn() "{{{
" Expand:
call delimitMate#FlushBuffer()
"return "\<Esc>a\<CR>x\<CR>\<Esc>k$\"_xa"
return "\<CR>\<UP>\<Esc>o"
return "\<Esc>a\<CR>\<UP>\<Esc>o"
else
return "\<CR>"
endif

View File

@@ -128,6 +128,15 @@ e.g.: >
let loaded_delimitMate = 1
au FileType mail let b:loaded_delimitMate = 1
<
------------------------------------------------------------------------------
*'delimitMate_offByDefault'*
Values: 0 or 1.~
Default: 0~
If this option is set to 1, delimitMate will load, but will not take
effect in any buffer unless |:DelimitMateSwitch| is called in that
buffer.
------------------------------------------------------------------------------
*'delimitMate_autoclose'*
*'b:delimitMate_autoclose'*

View File

@@ -237,7 +237,9 @@ function! s:DelimitMateDo(...) "{{{
call s:init()
" Now, add magic:
call s:Map()
if !exists("g:delimitMate_offByDefault") || !g:delimitMate_offByDefault
call s:Map()
endif
if a:0 > 0
echo "delimitMate has been reset."