开发者

Vim will copy the text when I delete it, but how can I disable it?

开发者 https://www.devze.com 2023-01-04 13:01 出处:网络
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 swall

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
0

精彩评论

暂无评论...
验证码 换一张
取 消