'inccommand': rename 'incsubstitute'

'inccommand' allows us to expand the feature to other commands, such as:
    :cdo
    :cfdo
    :global

Also rename "IncSubstitute" highlight group to "Substitute".
This commit is contained in:
Justin M. Keyes
2016-11-07 00:59:32 +01:00
parent 1e0e301062
commit 6a3f8d48d0
10 changed files with 86 additions and 86 deletions

View File

@@ -1592,7 +1592,7 @@ static int command_line_changed(CommandLineState *s)
redrawcmdline();
s->did_incsearch = true;
} else if (s->firstc == ':'
&& *p_ics != NUL // 'incsubstitute' is set
&& *p_icm != NUL // 'inccommand' is set
&& cmdline_star == 0 // not typing a password
&& cmd_is_live(ccline.cmdbuff)) {
// process a "live" command