Search code examples
vimshortcut

How to delete until (and not including) the last char on the line


I would like to delete a sequence ending with plenty parenthesis and rather than count the exact number of parenthesis to do a d[count]f), I want to delete up to the before last character in a line.

I tried dt$ but with no success.

EDIT: Eventually, can we exclude more characters ?


Solution

  • So as I see the real question is "How to delete until (and not including) the last char on the line.

    And the answer is: dv$. See :h exclusive and :h o_v.