How to delete (not cut) in Vim?

前端 未结 6 565
别那么骄傲
别那么骄傲 2021-01-29 17:52

How can I delete a line without putting it into my default buffer?

Example:

line that will be copied.

line that I want to be substitued with the previou         


        
6条回答
  •  我在风中等你
    2021-01-29 18:30

    That's one of the things I disliked about vim... I ended up mapping dd to the black hole register in my .vimrc and life has been good since:

    nnoremap d "_d
    vnoremap d "_d
    

提交回复
热议问题