Saturday, June 4, 2016

Re: How to combine the command df" and df[

Hi imlegendlzz,

On Fri, 3 Jun 2016 21:52:38 -0700 (PDT)
李哲 <imlegendlzz@gmail.com> wrote:

> I usually use the command `dt"` and `dt[` to delete the content from the
> current position to the mark [ or ".
>
> Is there a way that use the commannd `dtt`(for example) to combine the two
> `dt[` and `dt"` command?
>
> for example , `$` mark the current position of the curor.
> 1. "aaaa$bbbb"[cccccddddd] ; command dtt delete bbbb
> 2. "aaaabbbb"[ccccc$ddddd] ; command dtt delete ddddd
> 3. [ccccc"aaaa$bbbb"ddddd] ; command dtt delete bbbb, find the " or ] which
> is closer to the current curor
>
> I think it need a custum function to make it.
> And the problem for me now is now to locate the closer " or ], and then
> delete to the mark.
>

Perhaps try visual selection («:help v») or the «:help /» command doing
something like /[\w\[] or a combination of both.

Regards,

Shlomi Fish

--
-----------------------------------------------------------------
Shlomi Fish

God is Chuck Norris, for extremely large values of God.

Please reply to list if it's a mailing list post

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: