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
" Fast wrap the word in brackets
" Haven't finished yet
function! AutoPairsExtend()
function! AutoPairsFastWrap()
let line = getline('.')
let current_char = line[col('.')-1]
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-a> <END>'
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
endfunction