Function: vip-find-char-forward
vip-find-char-forward is an interactive and byte-compiled function
defined in vip.el.gz.
Signature
(vip-find-char-forward ARG)
Documentation
Find char on the line. If called interactively read the char to find from the terminal, and if called from vip-repeat, the char last used is used. This behavior is controlled by the sign of prefix numeric value.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/vip.el.gz
(defun vip-find-char-forward (arg)
"Find char on the line. If called interactively read the char to find
from the terminal, and if called from vip-repeat, the char last used is
used. This behavior is controlled by the sign of prefix numeric value."
(interactive "P")
(let ((val (vip-p-val arg)) (com (vip-getcom arg)))
(if (> val 0)
;; this means that the function was called interactively
(setq vip-f-char (read-char)
vip-f-forward t
vip-f-offset nil)
(setq val (- val)))
(if com (move-marker vip-com-point (point)))
(vip-find-char val (if (> (vip-p-val arg) 0) vip-f-char vip-F-char) t nil)
(setq val (- val))
(if com
(progn
(setq vip-F-char vip-f-char);; set new vip-F-char
(forward-char)
(vip-execute-com 'vip-find-char-forward val com)))))