2018-8-9(Thu) 9:22:13 UTC+9 yega...@gmail.com:
I mention only about option name.
Option name 'inccommand' is not intuitive.
I think 'substituteopt' ('subopt' in short name) is better.
--
Best regards,
Hirohito Higashi (h_east)
2018-8-9(Thu) 10:25:46 UTC+9 James McCoy:
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.
On Do, 09 Aug 2018, Dominique Pellé wrote:
> Yegappan Lakshmanan <yega...@gmail.com> wrote:
>
> > 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.
>
> I watched the screencast about the 'inccommand' feature.
> It looks useful. When typing :%/foo/bar it interactively highlights
> the matches for "foo". It would look nicer if it also highlighted
> the substituted strings "bar", with a different color.
I noticed that too.
Besides, I think there should be a way to scroll
interactively to be able to better control, that the :s command worked
on all parts of the document as expected, even if not visible in the
current viewport.