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:
parent
7ed30f2bac
commit
18f51f0699
@ -74,7 +74,6 @@
|
|||||||
if g:EasyMotion_special_{fn.flag}
|
if g:EasyMotion_special_{fn.flag}
|
||||||
silent exec 'onoremap <silent> ' . g:EasyMotion_special_mapping_{motion} . ' :call EasyMotion#' . fn.name . '()<CR>'
|
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> 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>'
|
silent exec 'nnoremap <silent> y' . g:EasyMotion_special_mapping_{motion} . ' :call EasyMotion#' . fn.name . 'Yank()<CR>'
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
@ -223,15 +222,6 @@
|
|||||||
keepjumps call cursor(orig_pos[0], orig_pos[1])
|
keepjumps call cursor(orig_pos[0], orig_pos[1])
|
||||||
"normal p
|
"normal p
|
||||||
endfunction "}}}
|
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() "{{{
|
function! EasyMotion#SelectPhrase() "{{{
|
||||||
let chars = s:GetSearchChar2(0)
|
let chars = s:GetSearchChar2(0)
|
||||||
@ -272,15 +262,6 @@
|
|||||||
normal y
|
normal y
|
||||||
keepjumps call cursor(orig_pos[0], orig_pos[1])
|
keepjumps call cursor(orig_pos[0], orig_pos[1])
|
||||||
endfunction "}}}
|
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 {{{
|
" Helper functions {{{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user