diff --git a/autoload/delimitMate.vim b/autoload/delimitMate.vim index a282862..b9c8492 100644 --- a/autoload/delimitMate.vim +++ b/autoload/delimitMate.vim @@ -434,24 +434,22 @@ function! delimitMate#JumpOut(char) "{{{ endif endfunction " }}} -function! delimitMate#JumpAny(key) " {{{ +function! delimitMate#JumpAny(...) " {{{ if delimitMate#IsForbidden('') - return a:key + return '' endif if !delimitMate#ShouldJump() - return a:key + return '' endif " Let's get the character on the right. let char = delimitMate#GetCharFromCursor(0) if char == " " " Space expansion. - "let char = char . getline('.')[col('.')] . delimitMate#Del() return char . getline('.')[col('.')] . delimitMate#Del() . \ delimitMate#Del() "call delimitMate#RmBuffer(1) elseif char == "" " CR expansion. - "let char = "\" . getline(line('.') + 1)[0] . "\" call delimitMate#FlushBuffer() return "\" . getline(line('.') + 1)[0] . delimitMate#Del() . "\" else diff --git a/plugin/delimitMate.vim b/plugin/delimitMate.vim index 9616869..0534e37 100644 --- a/plugin/delimitMate.vim +++ b/plugin/delimitMate.vim @@ -347,7 +347,7 @@ function! s:ExtraMappings() "{{{ silent! imap delimitMateSpace endif " Jump over any delimiter: - inoremap delimitMateS-Tab =delimitMate#JumpAny("\") + inoremap delimitMateS-Tab =delimitMate#JumpAny() if s:g('tab2exit') && !hasmapto('delimitMateS-Tab', 'i') && maparg('', 'i') == '' silent! imap delimitMateS-Tab endif