scriptencoding utf-8 let s:cpo_save = &cpo set cpo&vim if exists('g:loaded_copiepate') && g:loaded_copiepate finish endif let g:loaded_copiepate = 1 command -range=% CopiePate call copiepate#copylines(, ) command -range=% CopiePateReg call copiepate#copyreg() noremap y :CopiePateReg vnoremap y :CopiePate let &cpo = s:cpo_save unlet s:cpo_save