thanks folks! really good to learn...
I prefer not to define new maps for this purpose.
the recording method looks good if I work contineously on it in a day,
but need some "tool design work" everytime I want to use it.
the "wcb" and "4s" looks good in the sense that it delete also the
space next to the deleted word...
I think I'll go with either Ns(less strokes) or dwi(no need to count,
straitforward method) way and build it into my day to day habit...
thanks!
On Tue, Feb 17, 2015 at 9:40 PM, John Little <John.B.Little@gmail.com> wrote:
> On Wednesday, February 18, 2015 at 7:18:15 AM UTC+13, ping wrote:
>> experts:
>> I know this looks stupid and simple, but I don't know the answer right now.
>>
>> say I want to replace a word :
>>
>> from:
>>
>> abc 456
>>
>> to:
>> 123456
>>
>> what I did is:
>> 1. put my cursor in a, then cw123<esc>x , 7 strokes
>> 2. put my cursor in b, then caw123<esc>, 7strokes
>> 3. put my cursor in a, then dwi123<esc>, 7 strokes
>>
>> it looks cw and dw behaves non-consistently, which I know is by the design.
>>
>> I'm editing an old doc full of typos and spelling errors, etc, and I
>> need to do this quite often, does anyone knows of a
>> least-strokes-method (to protect my fingers) ?
>
> 4s123<esc> is one less, but your eyes have to do the count; my eyes move more easily than my fingers, so that's I do.
>
> Regards, John Little
>
> --
> --
> 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.
--
--
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:
Post a Comment