Friday, February 26, 2021

Re: How to delete from the current cursor position to a particular character on the same line?

Moving to the next " is f" and the f motion is |inclusive| so df" should do it.

See ":help f" (without the quotes).

Best regards,
Tony.

On Fri, Feb 26, 2021 at 5:00 PM Joseph Wulf <joseph.c.wulf@gmail.com> wrote:
>
> I've a common problem that I've never been able to find a solution for.
>
> With a sample script line like the following:
> printf "A(%14s), B(%s), C(%14s), D(%14s), E(%14s), F(%3s), G(%-24s), H(%4s), I(%14s), J(%s),", "${x01}","${x02}","${x03}","${x04}","${x05}","${x06}","${x07}","${x08}","${x09}","${x10}"
>
> With my cursor at "B" how can I delete from the current cursor position (col 18) to the first double-quote mark (") efficiently?
>
> Thank you.
>
> --
> --
> 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.
> To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/c8220bfd-cad2-4365-8c74-5826488d110dn%40googlegroups.com.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXsS90Tc_4h%3DdjSs%3Dngmy7y3hb7ZRjyxn8GaTQLEyB8NeA%40mail.gmail.com.

No comments: