vim-easymotion/autoload/vital/_easymotion/Over/Commandline/Modules/Paste.vim
haya14busa 2c4fa0dde2 Revert "Merge branch 'update-vital-over'"
This reverts commit 10a147d534, reversing
changes made to 9f836921d3.
2014-05-30 00:22:13 +09:00

25 lines
354 B
VimL

scriptencoding utf-8
let s:save_cpo = &cpo
set cpo&vim
let s:module = {
\ "name" : "Paste"
\}
function! s:module.on_char_pre(cmdline)
if a:cmdline.is_input("<Over>(paste)")
call a:cmdline.insert(@*)
call a:cmdline.setchar('')
endif
endfunction
function! s:make()
return deepcopy(s:module)
endfunction
let &cpo = s:save_cpo
unlet s:save_cpo