diff --git a/autoload/delimitMate.vim b/autoload/delimitMate.vim index 9ea923e..26f03e8 100644 --- a/autoload/delimitMate.vim +++ b/autoload/delimitMate.vim @@ -623,36 +623,36 @@ endfunction " }}} function! delimitMate#NoAutoClose() "{{{ " inoremap ) =delimitMate#SkipDelim('\)') for delim in b:delimitMate_right_delims + b:delimitMate_quotes_list - exec 'inoremap ' . delim . ' =delimitMate#SkipDelim("' . escape(delim,'"\|') . '")' + exec 'inoremap ' . delim . ' =delimitMate#SkipDelim("' . escape(delim,'"\|') . '")' endfor endfunction "}}} function! delimitMate#AutoClose() "{{{ " Add matching pair and jump to the midle: - " inoremap ( () + " inoremap ( () let i = 0 while i < len(b:delimitMate_matchpairs_list) let ld = b:delimitMate_left_delims[i] let rd = b:delimitMate_right_delims[i] - exec 'inoremap ' . ld . ' ' . ld . '=delimitMate#ParenDelim("' . rd . '")' + exec 'inoremap ' . ld . ' ' . ld . '=delimitMate#ParenDelim("' . rd . '")' let i += 1 endwhile " Exit from inside the matching pair: for delim in b:delimitMate_right_delims - exec 'inoremap ' . delim . ' =delimitMate#JumpOut("\' . delim . '")' + exec 'inoremap ' . delim . ' =delimitMate#JumpOut("\' . delim . '")' endfor " Add matching quote and jump to the midle, or exit if inside a pair of matching quotes: - " inoremap " =delimitMate#QuoteDelim("\"") + " inoremap " =delimitMate#QuoteDelim("\"") for delim in b:delimitMate_quotes_list - exec 'inoremap ' . delim . ' =delimitMate#QuoteDelim("\' . delim . '")' + exec 'inoremap ' . delim . ' =delimitMate#QuoteDelim("\' . delim . '")' endfor " Try to fix the use of apostrophes (de-activated by default): - " inoremap n't n't + " inoremap n't n't for map in b:delimitMate_apostrophes_list - exec "inoremap " . map . " " . map + exec "inoremap " . map . " " . map endfor endfunction "}}} @@ -661,52 +661,52 @@ function! delimitMate#VisualMaps() " {{{ let vleader = b:delimitMate_l_visual_leader " Wrap the selection with matching pairs, but do nothing if blockwise visual mode is active: for del in b:delimitMate_right_delims + b:delimitMate_left_delims + b:delimitMate_quotes_list - exec "vnoremap " . vleader . del . ' delimitMate#Visual("' . escape(del, '")') . '")' + exec "vnoremap " . vleader . del . ' delimitMate#Visual("' . escape(del, '")') . '")' endfor endfunction "}}} function! delimitMate#ExtraMappings() "{{{ " If pair is empty, delete both delimiters: - inoremap =delimitMate#BS() + inoremap =delimitMate#BS() " If pair is empty, delete closing delimiter: - inoremap delimitMate#WithinEmptyPair() ? "\=delimitMate#Del()\" : "\" + inoremap delimitMate#WithinEmptyPair() ? "\=delimitMate#Del()\" : "\" " Expand return if inside an empty pair: if b:delimitMate_l_expand_cr != 0 - inoremap =delimitMate#ExpandReturn() + inoremap =delimitMate#ExpandReturn() endif " Expand space if inside an empty pair: if b:delimitMate_l_expand_space != 0 - inoremap =delimitMate#ExpandSpace() + inoremap =delimitMate#ExpandSpace() endif " Jump out ot any empty pair: if b:delimitMate_l_tab2exit - inoremap =delimitMate#JumpAny("\") + inoremap =delimitMate#JumpAny("\") endif " Fix the re-do feature: - inoremap =delimitMate#Finish() + inoremap =delimitMate#Finish() " Flush the char buffer on mouse click: - inoremap =delimitMate#Finish() - inoremap =delimitMate#Finish() + inoremap =delimitMate#Finish() + inoremap =delimitMate#Finish() " Flush the char buffer on key movements: - inoremap =delimitMate#Finish() - inoremap =delimitMate#Finish() - inoremap =delimitMate#Finish() - inoremap =delimitMate#Finish() + inoremap =delimitMate#Finish() + inoremap =delimitMate#Finish() + inoremap =delimitMate#Finish() + inoremap =delimitMate#Finish() - inoremap =delimitMate#Del() + inoremap =delimitMate#Del() "the following simply creates an ambiguous mapping so vim fully "processes the escape sequence for terminal keys, see 'ttimeout' for a "rough explanation, this just forces it to work if !has('gui_running') - inoremap OC + inoremap OC endif endfunction "}}}