patch 8.1.0858: 'indentkeys' and 'cinkeys' defaults are different
Problem: 'indentkeys' and 'cinkeys' defaults are different.
Solution: Make them the same, update docs. (close #3882)
diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt
index 2c12fe4..299d1ac 100644
--- a/runtime/doc/indent.txt
+++ b/runtime/doc/indent.txt
@@ -60,12 +60,13 @@
only triggers C-indenting. When 'indentexpr' is not empty 'indentkeys' is
used instead. The format of 'cinkeys' and 'indentkeys' is equal.
-The default is "0{,0},0),:,0#,!^F,o,O,e" which specifies that indenting occurs
-as follows:
+The default is "0{,0},0),0],:,0#,!^F,o,O,e" which specifies that indenting
+occurs as follows:
"0{" if you type '{' as the first character in a line
"0}" if you type '}' as the first character in a line
"0)" if you type ')' as the first character in a line
+ "0]" if you type ']' as the first character in a line
":" if you type ':' after a label or case statement
"0#" if you type '#' as the first character in a line
"!^F" if you type CTRL-F (which is not inserted)
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 128b34c..2667490 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1564,7 +1564,7 @@
NOTE: This option is reset when 'compatible' is set.
*'cinkeys'* *'cink'*
-'cinkeys' 'cink' string (default "0{,0},0),:,0#,!^F,o,O,e")
+'cinkeys' 'cink' string (default "0{,0},0),0],:,0#,!^F,o,O,e")
local to buffer
{not in Vi}
{not available when compiled without the |+cindent|
@@ -4607,7 +4607,7 @@
*'indentkeys'* *'indk'*
-'indentkeys' 'indk' string (default "0{,0},:,0#,!^F,o,O,e")
+'indentkeys' 'indk' string (default "0{,0},0),0],:,0#,!^F,o,O,e")
local to buffer
{not in Vi}
{not available when compiled without the |+cindent|