How can I set up a keybinding to delete up to the end of a sentence that ends with a period, but keep the period?
The commands df.
, d)
, and D
all truncate the sentence but don't keep the period. Manually, I can type d/\.<ENTER>:noh<ENTER>
.
For example: I have this sentence and the cursor is at the position marked by the caret:
Scholar X's monograph is a groundbreaking study but I don't like it.
^
I want to type one command (say, Ds
) and get this:
Scholar X's monograph is a groundbreaking study.