1

The new behavior you're seeing is due to the new modifyOtherKeys feature, which has applications such as Vim announce to the terminal that they would like to receive extended and expanded escape sequences for keypresses with modifier keys (Ctrl, Alt, Shift, etc.) For example, this allows Vim to differentiate Ctrl+I from Tab, or Ctrl+[ from Esc, but it also ...


1

This sounds like a job for feedkeys(). What makes me think that* is the fact that you got the response you wanted when the command was included in a mapping. Looking at the first sentence of the documentation for the function: Characters in {string} are queued for processing as if they come from a mapping or were typed by the user. (Emphasis is mine.) So ...


1

See :h confirm(). " prefer console dialogs in GVim too "set guioptions+=c let text =<< trim END W11: Warning: File "~/.vimrc" has changed since editing started See ":help W11" for more info. END echo confirm(join(text, "\n"), "&OK\n&Load File", 1, "Warning")


Only top voted, non community-wiki answers of a minimum length are eligible