Re: vim: least key stroke to replace a word

2016-03-12 Thread Yang Luo
在 2015年2月18日星期三 UTC+8上午2:18:15,ping写道: > 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 cw123x , 7 strokes > 2. put my cu

Re: vim: least key stroke to replace a word

2015-06-02 Thread ping song
did other tests, it looks "Ns" is the best one in that: it support repeat with "." it is reliable. cta method is good (support repeat), but not reliable (it assumes the 1st word does not contain an 'a'.) thanks! On Thu, Feb 19, 2015 at 7:50 AM, HATe wrote: > > ping song schrieb am Do., 19. Feb

Re: vim: least key stroke to replace a word

2015-02-19 Thread HATe
ping song schrieb am Do., 19. Feb. 2015 05:00: 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

Re: vim: least key stroke to replace a word

2015-02-18 Thread ping song
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 t

Re: vim: least key stroke to replace a word

2015-02-17 Thread John Little
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 cw123x

Re: vim: least key stroke to replace a word

2015-02-17 Thread Tim Chase
On 2015-02-17 10:57, Arun wrote: > On Tue, Feb 17, 2015 at 10:18 AM, ping song > 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 > > > > w

Re: vim: least key stroke to replace a word

2015-02-17 Thread Arun
On Tue, Feb 17, 2015 at 10:18 AM, ping song 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 cw123x , 7 strokes > 2.

Re: vim: least key stroke to replace a word

2015-02-17 Thread Nicolas Dermine
Hi, On Tue, Feb 17, 2015 at 7:18 PM, ping song 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 cw123x , 7 strokes >

vim: least key stroke to replace a word

2015-02-17 Thread ping song
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 cw123x , 7 strokes 2. put my cursor in b, then caw123, 7strokes 3. put my cursor in a, then dwi123,