Function: viper-del-backward-char-in-replace
viper-del-backward-char-in-replace is an interactive and byte-compiled
function defined in viper-cmd.el.gz.
Signature
(viper-del-backward-char-in-replace)
Documentation
Delete one character in replace mode.
If viper-delete-backwards-in-replace is t, then DEL key actually deletes
characters. If it is nil, then the cursor just moves backwards, similarly
to Vi. The variable viper-ex-style-editing, if t, doesn't let the
cursor move past the beginning of line.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/viper-cmd.el.gz
(defun viper-del-backward-char-in-replace ()
"Delete one character in replace mode.
If `viper-delete-backwards-in-replace' is t, then DEL key actually deletes
characters. If it is nil, then the cursor just moves backwards, similarly
to Vi. The variable `viper-ex-style-editing', if t, doesn't let the
cursor move past the beginning of line."
(interactive)
(cond (viper-delete-backwards-in-replace
(cond ((not (bolp))
;; don't put on kill ring
(delete-char -1 nil))
(viper-ex-style-editing
(beep 1))
((bobp)
(beep 1))
(t
;; don't put on kill ring
(delete-char -1 nil))))
(viper-ex-style-editing
(if (bolp)
(beep 1)
(backward-char 1)))
(t
(backward-char 1))))