Function: vip-repeat-insert-command
vip-repeat-insert-command is a byte-compiled function defined in
vip.el.gz.
Signature
(vip-repeat-insert-command)
Documentation
This function is called when mode changes from insertion mode to vi command mode. It will repeat the insertion command if original insertion command was invoked with argument > 1.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/vip.el.gz
;; insertion commands
(defun vip-repeat-insert-command ()
"This function is called when mode changes from insertion mode to
vi command mode. It will repeat the insertion command if original insertion
command was invoked with argument > 1."
(let ((i-com (car vip-d-com)) (val (car (cdr vip-d-com))))
(if (and val (> val 1)) ;; first check that val is non-nil
(progn
(setq vip-d-com (list i-com (1- val) ?r))
(vip-repeat nil)
(setq vip-d-com (list i-com val ?r))))))