送你一个最好用的自定义没有之一,你值得拥有
" replace text with clipboard (in all modes)
function! ReplaceWithClipbd(type)
let paste_save=&paste
let &paste=1
if a:type == 'line'
silent exe "normal! '[V']"
elseif a:type == 'block'
silent exe "normal! `[\<C-V>`]"
elseif a:type == 'char'
silent exe "normal! `[v`]"
else
silent exe "normal! `<" . a:type . "`>"
endif
silent exe "normal! \"_c\<C-R>\"\<ESC>"
let &paste=paste_save
endfunction
nmap <silent> S :set opfunc=ReplaceWithClipbd<CR>g@
vmap <silent> S :<C-U>call ReplaceWithClipbd(visualmode())<CR>
【 在 beep 的大作中提到: 】
: 这不是啥奇怪的字符
: ci( = change in (
: ca{ = change around {
: ...................
--
FROM 221.192.179.*