Make :DelimitMateTest more verbose.

- Add the output of :version.
- Print all mapping regardless of value.
- Ask before overwriting a modified buffer.
This commit is contained in:
Israel Chauca Fuentes
2012-02-25 17:45:28 -05:00
parent fe5dd9a61a
commit 0fb597ef36
2 changed files with 19 additions and 16 deletions

View File

@@ -193,7 +193,7 @@ endfunction " }}} s:Unmap()
function! s:TestMappingsDo() "{{{
%d
if !exists("g:delimitMate_testing")
silent call delimitMate#TestMappings()
call delimitMate#TestMappings()
else
let temp_varsDM = [b:_l_delimitMate_expand_space, b:_l_delimitMate_expand_cr, b:_l_delimitMate_autoclose]
for i in [0,1]
@@ -412,7 +412,7 @@ call s:DelimitMateDo()
command! -bar DelimitMateReload call s:DelimitMateDo(1)
" Quick test:
command! -bar DelimitMateTest silent call s:TestMappingsDo()
command! -bar DelimitMateTest call s:TestMappingsDo()
" Switch On/Off:
command! -bar DelimitMateSwitch call s:DelimitMateSwitch()