vim-patch:8.1.0225: mode() does not indicate using CTRL-O from Insert mode (#9644)

Problem:    Mode() does not indicate using CTRL-O from Insert mode.
Solution:   Add "niI", "niR" and "niV" to mode() result. (closes vim/vim#3000)
612cc3888b
This commit is contained in:
Justin M. Keyes
2019-02-24 21:44:31 +01:00
committed by GitHub
parent 9327ea3e5a
commit 3b2d5317a5
3 changed files with 19 additions and 0 deletions

View File

@@ -5774,6 +5774,9 @@ mode([expr]) Return a string that indicates the current mode.
This is useful in the 'statusline' option or when used
with |remote_expr()| In most other places it always returns
"c" or "n".
Note that in the future more modes and more specific modes may
be added. It's better not to compare the whole string but only
the leading character(s).
Also see |visualmode()|.
msgpackdump({list}) *msgpackdump()*