Variable: viper-search-scroll-threshold

viper-search-scroll-threshold is a customizable variable defined in viper-init.el.gz.

Value

2

Documentation

If search lands within this threshold from the window top/bottom, the window will be scrolled up or down appropriately, to reveal context. If you want Viper search to behave as usual in Vi, set this variable to a negative number.

Source Code

;; Defined in /usr/src/emacs/lisp/emulation/viper-init.el.gz
(defcustom viper-search-scroll-threshold 2
  "If search lands within this threshold from the window top/bottom,
the window will be scrolled up or down appropriately, to reveal context.
If you want Viper search to behave as usual in Vi, set this variable to a
negative number."
  :type 'integer
  :group 'viper-search)