Path: csiph.com!aioe.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: owl Newsgroups: alt.os.linux Subject: Re: vim all the way Date: Thu, 7 Nov 2019 14:43:02 -0000 (UTC) Organization: O.W.L. Lines: 38 Message-ID: References: <4VmuF.55422$NI41.43708@fx12.am4> <87pnic2w3z.fsf@dhh.gt.org> <195v8g-opo.ln1@Telcontar.valinor> Injection-Date: Thu, 7 Nov 2019 14:43:02 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="f1919d8fa19aa53bfc3e5e0c33028721"; logging-data="27814"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UrOaTdQuZ5X1jrSJBIhuvP2kYRyhsxWI=" User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-5-amd64 (x86_64)) Cancel-Lock: sha1:Y/05OtNw/1gDBYmvVXIGTbhFT7s= X-Face: $BHf)vM$6p_?9L`jmOQ54JeNyL+%MZGGRfH8&grb[Y%-jU`MCPAQN=/SVDa{(/67bP(YB}rjV^h>cUh Xref: csiph.com alt.os.linux:60366 Eric Pozharski wrote: > with owl wrote: >> RonB wrote: >>> On 2019-11-04, owl wrote: >>>> William Unruh wrote: >>>>> On 2019-11-04, RonB wrote: >>>>>> On 2019-11-03, owl wrote: >>>>>>> William Unruh wrote: >>>>>>>> On 2019-11-03, owl wrote: >>>>>>>>> Carlos E.R. wrote: >>>>>>>>>> On 02/11/2019 02.02, owl wrote: >>>>>>>>>>> William Unruh wrote: >>>>>>>>>>>> On 2019-11-02, owl wrote: >>>>>>>>>>>>> John Hasler wrote: >>>>>>>>>>>>>> owl writes: > > *SKIP* >>>> It's not arbitrary at all. As I stated, it's about economy of effort. >>>> Just one example: Please correct me if I'm wrong, but from what I gather, >>>> to move forward 20 words in emacs, you have to type: >>>> >>>> In vim, it's just: >>>> 20w >>> Normally I would move by line or screen, not a number of words. I guess this >>> might be a programming "thing?" >> Well, 7w or 8w will jump to approximately the center of the current line, then >> you can narrow it with w or b. 2b, 3w, or just bb or www. > > Approximately middle would be something like 35| . Also, just came in > -- gM , because gm is half *screenwidth*. > Yes, that's probably better in general use, for getting to the exact center of the line for whatever reason. But I had in mind targeting a word with the jump, so as to do something like delete it with 'dw'. Using gm, if you happen to hit somewhere inside your word, you have to delete it with 'daw' which is 50 percent less efficient. :)