Skip to content

Commit 4cf56bb

Browse files
committed
patch 8.0.1114: default for 'iminsert' is annoying
Problem: Default for 'iminsert' is annoying. Solution: Make the default always zero. (Yasuhiro Matsumoto, closes #2071)
1 parent eef9add commit 4cf56bb

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

runtime/doc/options.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4299,7 +4299,7 @@ A jump table for the options with a short description can be found at |Q_op|.
42994299
may change in later releases.
43004300

43014301
*'iminsert'* *'imi'*
4302-
'iminsert' 'imi' number (default 0, 2 when an input method is supported)
4302+
'iminsert' 'imi' number (default 0)
43034303
local to buffer
43044304
{not in Vi}
43054305
Specifies whether :lmap or an Input Method (IM) is to be used in
@@ -4322,7 +4322,7 @@ A jump table for the options with a short description can be found at |Q_op|.
43224322
methods. Use 'imdisable' to disable XIM then.
43234323

43244324
*'imsearch'* *'ims'*
4325-
'imsearch' 'ims' number (default 0, 2 when an input method is supported)
4325+
'imsearch' 'ims' number (default -1)
43264326
local to buffer
43274327
{not in Vi}
43284328
Specifies whether :lmap or an Input Method (IM) is to be used when

src/option.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,19 +1591,11 @@ static struct vimoption options[] =
15911591
SCRIPTID_INIT},
15921592
{"iminsert", "imi", P_NUM|P_VI_DEF,
15931593
(char_u *)&p_iminsert, PV_IMI,
1594-
#ifdef B_IMODE_IM
1595-
{(char_u *)B_IMODE_IM, (char_u *)0L}
1596-
#else
15971594
{(char_u *)B_IMODE_NONE, (char_u *)0L}
1598-
#endif
15991595
SCRIPTID_INIT},
16001596
{"imsearch", "ims", P_NUM|P_VI_DEF,
16011597
(char_u *)&p_imsearch, PV_IMS,
1602-
#ifdef B_IMODE_IM
1603-
{(char_u *)B_IMODE_IM, (char_u *)0L}
1604-
#else
1605-
{(char_u *)B_IMODE_NONE, (char_u *)0L}
1606-
#endif
1598+
{(char_u *)B_IMODE_USE_INSERT, (char_u *)0L}
16071599
SCRIPTID_INIT},
16081600
{"imstatusfunc","imsf",P_STRING|P_VI_DEF|P_SECURE,
16091601
#if defined(FEAT_EVAL) && defined(FEAT_XIM) && defined(FEAT_GUI_GTK)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1114,
772774
/**/
773775
1113,
774776
/**/

0 commit comments

Comments
 (0)