On Tue, Aug 5, 2014 at 3:44 PM, Kent Tenney <[email protected]> wrote: > in normal mode > > dw: delete word, word is the only text object I use, there are many > http://blog.carbonfive.com/2011/10/17/vim-text-objects-the-definitive-guide/ > (just discovered diw, useful!) > > v, V, ctrl-v : visual select character, line, column > O open line above current, start insert mode > y yank (copy) > p paste after > P paste before > ^ goto line start > $ goto line end
Excellent . These should be dead easy to add. The framework is already in place. Besides these kinds of commands, which are pretty much fill-in-the-blanks projects, there are two other important projects: 1. The dot doesn't work for insert modes, presumably for a fairly trivial reason. 2. Handling find commands. I just now saw the way forward. There are just a few considerations we have to satisfy: A. Little or no reliance on control keys. B. The commands must be repeatable/composable with the dot. C. The commands must be repeatable with * and #, etc. All should be easy to do using Leo's *existing* find machinery. Here's how: A. (Most important): train Leo user's to use Leo's minibuffer find :-) - Invoke the find: Ctrl-F in non-vim mode, something else in vim mode. B. Just before executing the search, Leo's core find code will call a vc method to remember/compose the equivalent dot command C. Do the find as always, using all of Leo's existing machinery. - Invoke * or # from vim normal mode to repeat searches. D. Use Leo's existing find commands when replaying the dot. This should satisfy points 1 and 2 above, which gives us the power of vim's search commands without having to redo any real find code. Unless I am greatly mistaken, it's a day or two's work. At that point, we should have most of vim's key features. Edward -- 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.
