Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In situation as below, I want to delete "TWO":

foobar("ONE", "TWO");
//              ^-- cursor here

so I press da", and the result is:

//           ^-- cursor here

How can I change this not to delete the space near the comma? Or what keys should I use? I never yet found situation where this behavior (of deleting space) would be what I want.

share|improve this question
I don't think that you can change this behavior. What about F"df"? – romainl Sep 21 '12 at 9:25

Use 2di" (or d2i", which is the same). This is a special case of using count with i" text-object, which removes all text inside quotes including quotes, acting just as you want it.

See also :help iquote.

You can find detailed explanation on removing spaces in :help aquote. It may not be really useful for something enclosed in quotes, but removing trailing space or leading when there is no trailing space definitely makes sense when you use sentence or paragraph text-objects. The behavior could be made same for all text-object just for consistency.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .