Delete special Paste functions

EasyMotion#SelectLinesPaste() &  EasyMotion#SelectPhrasePaste() conflict
with vim default 'p' function. If enable this function, you cannot
execute vim default 'p' smoothly
This commit is contained in:
haya14busa 2013-11-27 11:32:42 +09:00
parent 7ed30f2bac
commit 18f51f0699

View File

@ -74,7 +74,6 @@
if g:EasyMotion_special_{fn.flag}
silent exec 'onoremap <silent> ' . g:EasyMotion_special_mapping_{motion} . ' :call EasyMotion#' . fn.name . '()<CR>'
silent exec 'nnoremap <silent> v' . g:EasyMotion_special_mapping_{motion} . ' :call EasyMotion#' . fn.name . '()<CR>'
silent exec 'nnoremap <silent> p' . g:EasyMotion_special_mapping_{motion} . ' :call EasyMotion#' . fn.name . 'Paste()<CR>'
silent exec 'nnoremap <silent> y' . g:EasyMotion_special_mapping_{motion} . ' :call EasyMotion#' . fn.name . 'Yank()<CR>'
endif
endfor
@ -223,15 +222,6 @@
keepjumps call cursor(orig_pos[0], orig_pos[1])
"normal p
endfunction "}}}
function! EasyMotion#SelectLinesPaste() "{{{
let orig_pos = [line('.'), col('.')]
call EasyMotion#SelectLines()
normal y
keepjumps call cursor(orig_pos[0], orig_pos[1])
if !g:EasyMotion_cancelled
normal p
endif
endfunction "}}}
function! EasyMotion#SelectPhrase() "{{{
let chars = s:GetSearchChar2(0)
@ -272,15 +262,6 @@
normal y
keepjumps call cursor(orig_pos[0], orig_pos[1])
endfunction "}}}
function! EasyMotion#SelectPhrasePaste() "{{{
let orig_pos = [line('.'), col('.')]
call EasyMotion#SelectPhrase()
normal y
keepjumps call cursor(orig_pos[0], orig_pos[1])
if !g:EasyMotion_cancelled
normal p
endif
endfunction "}}}
" }}}
" Helper functions {{{