Select entire line in VIM, without the new line character

后端 未结 6 1726
清歌不尽
清歌不尽 2020-12-23 16:57

Which is the shortest way to select an entire line without the new line character in VIM?

I know that SHIFT + v selects the entire line

6条回答
  •  甜味超标
    2020-12-23 17:16

    If you want to copy line into the buffer, you can delete from the cursor position to the end of line with D, and then revert changes with u. Text will be copied to the buffer without new line symbol. So the command is:

    Du
    

提交回复
热议问题