From 5e8f9eacacc82d65538d7cd88bd5e300f276cbf9 Mon Sep 17 00:00:00 2001 From: Israel Chauca Fuentes Date: Mon, 29 Mar 2010 21:08:59 -0500 Subject: [PATCH] Expansion functions are global now. This could help when creating custom mappings for and . --- plugin/delimitMate.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/delimitMate.vim b/plugin/delimitMate.vim index 3ede073..df3f681 100644 --- a/plugin/delimitMate.vim +++ b/plugin/delimitMate.vim @@ -410,7 +410,7 @@ function! s:VisualMaps() " {{{ endfor endfunction "}}} -function! s:ExpandReturn() "{{{ +function! DelimitMate_ExpandReturn() "{{{ if DelimitMate_WithinEmptyPair() " Expand: return "\a\x\\k$\"_xa" @@ -420,7 +420,7 @@ function! s:ExpandReturn() "{{{ endif endfunction "}}} -function! s:ExpandSpace() "{{{ +function! DelimitMate_ExpandSpace() "{{{ if DelimitMate_WithinEmptyPair() " Expand: return s:WriteAfter(' ')."\" @@ -439,12 +439,12 @@ function! s:ExtraMappings() "{{{ " Expand return if inside an empty pair: if b:delimitMate_expand_cr != 0 - inoremap =ExpandReturn() + inoremap =DelimitMate_ExpandReturn() endif " Expand space if inside an empty pair: if b:delimitMate_expand_space != 0 - inoremap =ExpandSpace() + inoremap =DelimitMate_ExpandSpace() endif " Jump out ot any empty pair: @@ -563,11 +563,11 @@ function! s:UnMap() " {{{ silent! iunmap "echomsg "silent! iunmap " endif - if maparg('',"i") =~? 'ExpandReturn' + if maparg('',"i") =~? 'DelimitMate_ExpandReturn' silent! iunmap "echomsg "silent! iunmap " endif - if maparg('',"i") =~? 'ExpandSpace' + if maparg('',"i") =~? 'DelimitMate_ExpandSpace' silent! iunmap "echomsg "silent! iunmap " endif