I don't lik开发者_Python百科e automatic copy the deleted text when delete in Vim, how to disable it?
Not sure there is a way to disable it, but there is a black hole register called '_', which swallows everything, and gives nothing back.
You use it by prepending "_ to the command, so "_dd would send the current line to the blackhole.
I also wanted to disable this and have found a solution:
Add this to your .gvimrc file and autocopy text on select will be disabled.
" Following three lines remove the auto copy function from VIM
set guioptions-=a
set guioptions-=A
set guioptions-=aA
精彩评论