Function: viper-window-top
viper-window-top is an interactive and byte-compiled function defined
in viper-cmd.el.gz.
Signature
(viper-window-top ARG)
Documentation
Go to home window line.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/viper-cmd.el.gz
;; window scrolling etc.
(defun viper-window-top (arg)
"Go to home window line."
(interactive "P")
(let ((val (viper-p-val arg))
(com (viper-getCom arg)))
(if com (viper-move-marker-locally 'viper-com-point (point)))
(push-mark nil t)
(move-to-window-line (1- val))
;; positioning is done twice: before and after command execution
(if (and (eobp) (bolp) (not (bobp))) (forward-line -1))
(back-to-indentation)
(if com (viper-execute-com 'viper-window-top val com))
(if (and (eobp) (bolp) (not (bobp))) (forward-line -1))
(back-to-indentation)
))