I know I've probably looked over this a million times in all the vi
documents I've read, but I can't seem to find the delete from cursor to end of line command.
Delete from cursor to end of line in `vi`
vivim
vivim
I know I've probably looked over this a million times in all the vi
documents I've read, but I can't seem to find the delete from cursor to end of line command.
Best Answer
D
(=Shift+D)The command DW will delete from the current cursor position to the beginning of the next word character. The command D$ (note, that's a dollar sign, not an 'S') will delete from the current cursor position to the end of the current line. Shift+D is a synonym for D$.