From 13841a56b4b4916a2f18e66f97cb6f5e55d40e53 Mon Sep 17 00:00:00 2001 From: KillTheMule Date: Fri, 12 Aug 2016 12:00:36 +0200 Subject: Incsubsitution feature Originally implemented by * Clement0 * DesbyP * aym7 * Adrey06 * Robinhola in #4811. Major reworkings and bug fixes by * bfredl Most tests suggested by ZyX-l, suggestions for improvements by oni-link. --- src/nvim/options.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/nvim/options.lua') diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 583c63614a..359bf3fcee 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -1210,6 +1210,14 @@ return { varname='p_is', defaults={if_true={vi=false, vim=true}} }, + { + full_name='incsubstitute', abbreviation='ics', + type='string', scope={'global'}, + vi_def=true, + redraw={'everything'}, + varname='p_ics', + defaults={if_true={vi=""}} + }, { full_name='indentexpr', abbreviation='inde', type='string', scope={'buffer'}, -- cgit From 6a3f8d48d0c96330511565aef5e10ad965e986b4 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 7 Nov 2016 00:59:32 +0100 Subject: '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". --- src/nvim/options.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/nvim/options.lua') diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 359bf3fcee..14707aaa6c 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -1187,6 +1187,14 @@ return { if_false={vi=macros('B_IMODE_NONE')}, } }, + { + full_name='inccommand', abbreviation='icm', + type='string', scope={'global'}, + vi_def=true, + redraw={'everything'}, + varname='p_icm', + defaults={if_true={vi=""}} + }, { full_name='include', abbreviation='inc', type='string', scope={'global', 'buffer'}, @@ -1210,14 +1218,6 @@ return { varname='p_is', defaults={if_true={vi=false, vim=true}} }, - { - full_name='incsubstitute', abbreviation='ics', - type='string', scope={'global'}, - vi_def=true, - redraw={'everything'}, - varname='p_ics', - defaults={if_true={vi=""}} - }, { full_name='indentexpr', abbreviation='inde', type='string', scope={'buffer'}, -- cgit