Function: vip-mode
vip-mode is an interactive and byte-compiled function defined in
vip.el.gz.
Signature
(vip-mode)
Documentation
Turn on VIP emulation of VI.
Probably introduced at or before Emacs version 18.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/vip.el.gz
;;;###autoload
(defun vip-mode ()
"Turn on VIP emulation of VI."
(interactive)
(if (not vip-inhibit-startup-message)
(progn
(switch-to-buffer "VIP Startup Message")
(erase-buffer)
(insert
"VIP is a Vi emulation package for GNU Emacs. VIP provides most Vi commands
including Ex commands. VIP is however different from Vi in several points.
You can get more information on VIP by:
1. Typing `M-x info' and selecting menu item \"vip\".
2. Typing `C-h k' followed by a key whose description you want.
3. Printing VIP manual which can be found as GNU/man/vip.texinfo
4. Printing VIP Reference Card which can be found as GNU/etc/vipcard.tex
This startup message appears whenever you load VIP unless you type `y' now.
Type `n' to quit this window for now.\n")
(goto-char (point-min))
(if (y-or-n-p "Inhibit VIP startup message? ")
(progn
(with-current-buffer
(find-file-noselect
(substitute-in-file-name vip-startup-file))
(goto-char (point-max))
(insert "\n(setq vip-inhibit-startup-message t)\n")
(save-buffer)
(kill-buffer (current-buffer)))
(message "VIP startup message inhibited.")
(sit-for 2)))
(kill-buffer (current-buffer))
(message "")
(setq vip-inhibit-startup-message t)))
(vip-change-mode-to-vi))