Change function name AutoPairsExtend to AutoPairsFastWrap

This commit is contained in:
jiangfriend@gmail.com 2011-06-10 02:26:22 +08:00
parent b0a61e7ab7
commit c3469cf0fd

View File

@ -109,8 +109,7 @@ function! AutoPairsJump()
endfunction endfunction
" Fast wrap the word in brackets " Fast wrap the word in brackets
" Haven't finished yet function! AutoPairsFastWrap()
function! AutoPairsExtend()
let line = getline('.') let line = getline('.')
let current_char = line[col('.')-1] let current_char = line[col('.')-1]
let next_char = line[col('.')] let next_char = line[col('.')]
@ -185,7 +184,7 @@ function! AutoPairsInit()
execute 'inoremap <buffer> <silent> <M-n> <ESC>:call AutoPairsJump()<CR>a' execute 'inoremap <buffer> <silent> <M-n> <ESC>:call AutoPairsJump()<CR>a'
execute 'inoremap <buffer> <silent> <M-a> <END>' execute 'inoremap <buffer> <silent> <M-a> <END>'
execute 'inoremap <buffer> <silent> <M-o> <END><CR>' execute 'inoremap <buffer> <silent> <M-o> <END><CR>'
execute 'inoremap <buffer> <silent> <M-e> <C-R>=AutoPairsExtend()<CR>' execute 'inoremap <buffer> <silent> <M-e> <C-R>=AutoPairsFastWrap()<CR>'
end end
endfunction endfunction