-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
Is your feature request about something that is currently impossible or hard to do? Please describe the problem.
Currently mode(1)
only includes restart_edit
if in Normal mode (niI
, niR
, niV
), but the value of restart_edit
may also be useful when not in Normal mode (e.g to determine which mode <Esc>
goes to in Visual mode, or to simulate showmode
messages like -- (insert) VISUAL --
in statusline).
Appending restart_edit
to every mode where restart_edit
can be non-empty in the return value of mode(1)
may make the return value of mode(1)
harder to parse, make the addition of new modes in the future more difficult, and make the documentation of mode()
very long.
Describe the solution you'd like
Instead, there can be a separate function to return the value of restart_edit
. IDK how it should be named though.