Function: viper-escape-to-emacs

viper-escape-to-emacs is an interactive and byte-compiled function defined in viper-cmd.el.gz.

Signature

(viper-escape-to-emacs ARG &optional EVENTS)

Documentation

Escape to Emacs state from Vi state for one Emacs command.

ARG is used as the prefix value for the executed command. If EVENTS is a list of events, which become the beginning of the command.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emulation/viper-cmd.el.gz
;; escape to emacs mode temporarily
(defun viper-escape-to-emacs (arg &optional events)
  "Escape to Emacs state from Vi state for one Emacs command.
ARG is used as the prefix value for the executed command.  If
EVENTS is a list of events, which become the beginning of the command."
  (interactive "P")
  (if (viper= last-command-event ?\\)
      (message "Switched to EMACS state for the next command..."))
  (viper-escape-to-state arg events 'emacs-state))