>To ask this question another way, is there anything much to be gained by using >the fairly clumsy vim syntax discussed in the P.S.?
'clumsy' is in the fingers of the coder :) What would be gained is reduced cognitive load for someone coming from vim. Leo will never clone the vim experience, it's a matter of cost/benefit, for you and for Leo users. I've been working in vim mode lately, and I think I'll continue, the benefit of some vim capability offsets the cost of remembering 'I can't do that', 'this works differently here' ... The decision is harder for you, since you aren't a fan, you need to guess what a vim fan's experience would be like. I happen to like :%s/this/that/gc , I've never used Leo's s&r YMWV On Fri, Aug 22, 2014 at 1:28 PM, Edward K. Ream <[email protected]> wrote: > First, the P.S. tells what vim's :s and :%s commands do. So yes, I've done > my homework. > > The question is, how much, if any, of either the syntax or the function of > these substitution commands is really needed? > > At present, both the :s and :%s commands do exactly the same thing: they > simply execute Leo's search-with-present-options command. (They are supposed > to set the node-only radio button, but they don't yet.) > > To ask this question another way, is there anything much to be gained by > using the fairly clumsy vim syntax discussed in the P.S.? > > Your comments, please. > > Edward > > P.S. From direct observation of vim, I can report that vim's :s and :%s > commands work as follows. Note that none of the commands affect the dot in > any way:: > > :%s/foo/bar > :%s/foo/bar/ > Replace first occurrence of 'foo' with 'bar' in all lines. > > :%s/foo/bar/g > Replace all occurrences of 'foo' with 'bar' in all lines. > > :s/foo/bar/ > Replace first occurrence of 'foo' (on the current line) with 'bar' > > :s/foo/bar/g > Replace all occurrence of 'foo' (on the current line ), with 'bar'. > > The trailing slash may be followed by both the 'g' flag, as shown above, or: > > /gi case insensitive > /gI case sensitive > > EKR > > -- > You received this message because you are subscribed to the Google Groups > "leo-editor" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/leo-editor. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
