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

2021-02-26 Thread 'JB' via vim_use
Your {foo} to {bar} example has a more-efficient solution: ci{ "Change inside curly-braces." Works for quotation marks and brackets, too: ci" or ci' or ci[ or ci< You can be on either of the grouping characters or anywhere inside them. Also, your ct= can be replaced with ce ("Change to end")

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

2021-02-26 Thread Eli the Bearded
On Fri, 26 Feb 2021, Joseph Wulf wrote: > I've a common problem that I've never been able to find a solution for. ... > With my cursor at "B" how can I delete from the current cursor position > (col 18) to the first double-quote mark (") efficiently? Delete up to a quote mark later in the line:

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

2021-02-26 Thread Joseph Wulf
That surely does it. Thank you both, very much. On Friday, February 26, 2021 at 11:30:53 AM UTC-5 sgovin...@yahoo.com wrote: > On 2/26/2021 7:35 AM, Joseph Wulf wrote: > > I've a common problem that I've never been able to find a solution for. > > ... > > ... how can I delete from the current

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

2021-02-26 Thread 'Suresh Govindachar' via vim_use
On 2/26/2021 7:35 AM, Joseph Wulf wrote: I've a common problem that I've never been able to find a solution for. ... ... how can I delete from the current cursor position ... to the first double-quote mark (") efficiently? In normal mode, consider "deleting with motion": dt" or df" --Suresh

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

2021-02-26 Thread Tony Mechelynck
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 wrote: > > I've a common problem that I've never been able to find a solution for. > > With a sample script line

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

2021-02-26 Thread Joseph Wulf
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),",