mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-07 13:14:35 +08:00
TestMappings handles "|". Closes #37.
This commit is contained in:
@@ -557,6 +557,9 @@ function! delimitMate#TestMappings() "{{{
|
|||||||
for map in imaps
|
for map in imaps
|
||||||
if maparg(map, "i") !~? 'delimitMate'
|
if maparg(map, "i") !~? 'delimitMate'
|
||||||
let output = ''
|
let output = ''
|
||||||
|
if map == '|'
|
||||||
|
let map = '<Bar>'
|
||||||
|
endif
|
||||||
redir => output | execute "verbose imap ".map | redir END
|
redir => output | execute "verbose imap ".map | redir END
|
||||||
let ibroken = ibroken + [map.": is not set:"] + split(output, '\n')
|
let ibroken = ibroken + [map.": is not set:"] + split(output, '\n')
|
||||||
endif
|
endif
|
||||||
@@ -572,6 +575,9 @@ function! delimitMate#TestMappings() "{{{
|
|||||||
for map in vmaps
|
for map in vmaps
|
||||||
if maparg(vleader . map, "v") !~? "delimitMate"
|
if maparg(vleader . map, "v") !~? "delimitMate"
|
||||||
let output = ''
|
let output = ''
|
||||||
|
if map == '|'
|
||||||
|
let map = '<Bar>'
|
||||||
|
endif
|
||||||
redir => output | execute "verbose imap ".map | redir END
|
redir => output | execute "verbose imap ".map | redir END
|
||||||
let vbroken = vbroken + [vleader.map.": is not set:"] + split(output,'\n')
|
let vbroken = vbroken + [vleader.map.": is not set:"] + split(output,'\n')
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user