Refactor reporting code.

This commit is contained in:
Israel Chauca Fuentes
2015-01-05 02:16:09 -05:00
parent ac792c01b6
commit 8e30e70bcd
2 changed files with 101 additions and 132 deletions

View File

@@ -202,7 +202,7 @@ function! s:Unmap() " {{{
let b:delimitMate_enabled = 0
endfunction " }}} s:Unmap()
function! s:TestMappingsDo() "{{{
function! s:test() "{{{
if &modified
let confirm = input("Modified buffer, type \"yes\" to write and proceed "
\ . "with test: ") ==? 'yes'
@@ -210,7 +210,7 @@ function! s:TestMappingsDo() "{{{
return
endif
endif
call delimitMate#TestMappings()
call delimitMate#Test()
g/\%^$/d
0
endfunction "}}}
@@ -366,7 +366,7 @@ endfunction "}}}
" Let me refresh without re-loading the buffer:
command! -bar DelimitMateReload call s:setup(1)
" Quick test:
command! -bar DelimitMateTest call s:TestMappingsDo()
command! -bar DelimitMateTest call s:test()
" Switch On/Off:
command! -bar DelimitMateSwitch call s:setup(2)
" Enable mappings: