[comp.emacs] Yet Another vi Mode

david@WUBIOS.WUSTL.EDU (David J. Camp) (10/04/90)

I must admit, it is hard to ween myself from vi, but I prefer the emacs
environment, especially the insertion mode.  I wanted the keys to work
more like vi, but I did not like vi-mode or vip-mode.  I am working on
a third alternative, as defined below.  It changes the meaning of some
of the control and escape key sequences, but keeps the basic input mode
intact.  I welcome others to send contributions, and I volunteer to 
coordinate this feature.  Note that it makes use of a subset of vip-mode
to get the ex commands (via the Escape-Colon sequence).  -David-

(global-set-key "\C-K" 'previous-line) ; up arrow
(global-set-key "\C-L" 'forward-char) ; right arrow
(global-set-key "\C-J" 'next-line) ; down arrow
(global-set-key "\C-H" 'backward-char) ; left arrow
(global-set-key "\M-l" 'recenter) ; redraw screen
(global-set-key "\M-^" 'beginning-of-line) 
(global-set-key "\M-$" 'end-of-line)
(global-set-key "\M-r" 'insert-file)
(global-set-key "\M-d" 'kill-line)
(autoload 'vip-ex "vip" "defines the ex commands" t)
(global-set-key "\M-:" 'vip-ex) ; Escape-Colon Precedes ex commands.

david@wubios.wustl.edu                 ^        Mr. David J. Camp
david%wubios@wugate.wustl.edu        < * >      +1 314 382 0584
...!uunet!wugate!wubios!david          v
My sense of inadequacy makes me wonder . . . :-)