Vim's text objects are one of the fundamental things that make using it so awesome.
I've had a bit of code in my vimrc that creates "next/previous" text objects for a while. Someone came along and helped me make it more compact a while ago, but I can't remember who.
It lets you use "din(" for "delete in next parens (on the current line)", which saves a bit of typing.
I've got something similar in mine;
The use-case is to allow indented comments (in languages where '#' is the comment delimiter)
Normally, when using auto-indent/smart-indent, pressing '#' on a blank line will change the column to zero, deleting any existing whitespace. By typing a character and deleting it, you override this behavior, allowing you to have comments at the same indentation level as the rest of the code.
I've had a bit of code in my vimrc that creates "next/previous" text objects for a while. Someone came along and helped me make it more compact a while ago, but I can't remember who.
It lets you use "din(" for "delete in next parens (on the current line)", which saves a bit of typing.
https://bitbucket.org/sjl/dotfiles/src/1b6ffba66e9f/vim/.vim...
Maybe I should turn it into a pathogen-installable plugin one of these days.