I wonder why that video only shows the effect in one line. What if I have a large screen with many matches in many lines?
I also don't like the jump when typing /g finally. Not sure how useful it is to show the effect of the substitute anyway, what is the use of the preview? Anyway, showing the matches can be controlled by 'incsearch'. That should be relatively easy to implement. > On Wed, Aug 08, 2018 at 06:01:50PM -0700, h_east wrote: > > Hi, > > > > 2018-8-9(Thu) 9:22:13 UTC+9 [email protected]: > > > Hi all, > > > > > > The 'inccommand' option in Neovim allows a user to perform > > > live substitution. When you type a :substitute command, the > > > document is modified live. A demonstration of this feature > > > is available at http://vimcasts.org/episodes/neovim-eyecandy. > > > > > > I think this feature will be a good addition to Vim. > > > > > > There is also a multiple-cursors plugin > > > (https://github.com/terryma/vim-multiple-cursors) > > > which tries to mimic the Sublime Text Editor's multiple > > > section feature in Vim. I am not sure whether the features > > > provided by this plugin and the 'inccommand' option can be > > > combined together and natively supported in Vim. > > > > I mention only about option name. > > > > Option name 'inccommand' is not intuitive. > > I think 'substituteopt' ('subopt' in short name) is better. > > It's called 'inccommand' because it's not intended to be specific to > :substitute (and related commands). That's just the first command that > implemented support. So, how would you describe the effect of the option then? Writing that down often helps to decide what to call it. -- A hamburger walks into a bar, and the bartender says: "I'm sorry, but we don't serve food here." /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" 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_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
