Function: viper-escape-to-vi

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

Signature

(viper-escape-to-vi ARG)

Documentation

Escape from Emacs state to Vi state for one Vi 1-character command.

If the Vi command that the user types has a prefix argument, e.g., d2w, then Vi's prefix argument will be used. Otherwise, the prefix argument passed to viper-escape-to-vi is used.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emulation/viper-cmd.el.gz
;; escape to Vi mode temporarily
(defun viper-escape-to-vi (arg)
  "Escape from Emacs state to Vi state for one Vi 1-character command.
If the Vi command that the user types has a prefix argument, e.g., `d2w', then
Vi's prefix argument will be used.  Otherwise, the prefix argument passed to
`viper-escape-to-vi' is used."
  (interactive "P")
  (message "Switched to VI state for the next command...")
  (viper-escape-to-state arg nil 'vi-state))