It's named "inccommand" because of the similarities it has with "incsearch". With "incsearch" it makes the window show incremental updates to what you are searching. With "inccommand" it shows incremental updates to your Ex command. That said it's true that it only works for substitution commands, so maybe it's a slight misnomer. Maybe "incsubstitue" or something is more accurate.
For what it's worth, the plugin https://github.com/markonm/traces.vim comes very close to replicating this functionality in Vim and it provides some extra benefits as well (but I assume not as efficiently as a native implementation). The one feature that the plugin doesn't mimic is the "show all substitutes in a preview window" one. On Wednesday, August 8, 2018 at 7:07:42 PM UTC-7, h_east wrote: > Hi, > > 2018-8-9(Thu) 10:25:46 UTC+9 James McCoy: > > 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. > > I judged that I was not intuitive by reading at inccommand's help document. > > > Works for :substitute, :smagic, :snomagic. hl-Substitute > > There is no way to know about it, as future things are not written there. > > You should write it in the document. > > -- > Best regards, > Hirohito Higashi (h_east) -- -- 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.
