Function: viper-replace-state-exit-cmd
viper-replace-state-exit-cmd is an interactive and byte-compiled
function defined in viper-cmd.el.gz.
Signature
(viper-replace-state-exit-cmd)
Documentation
Binding for keys that cause Replace state to switch to Vi or to Insert.
These keys are ESC, RET, and LineFeed.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/viper-cmd.el.gz
(defun viper-replace-state-exit-cmd ()
"Binding for keys that cause Replace state to switch to Vi or to Insert.
These keys are ESC, RET, and LineFeed."
(interactive)
(if overwrite-mode ; if in replace mode invoked via 'R'
(viper-finish-R-mode)
(viper-finish-change))
(let (com)
(if (eq this-command 'viper-intercept-ESC-key)
(setq com 'viper-exit-insert-state)
(viper-set-unread-command-events last-input-event)
(setq com (key-binding (read-key-sequence nil))))
(condition-case conds
(command-execute com)
(error
(viper-message-conditions conds)))
)
(viper-hide-replace-overlay))