Vi mode: Vi mode for Drscheme
by Jon Rafkind (rafkind at cs dot utah dot edu)
This package provides a mode for Drscheme that emulates some Vi commands. This package is in beta mode, it doesn’t have a lot of features and probably has some bugs. Feedback and bug reports is more than welcome!
1 Install
Execute the following line in Drscheme or Mzscheme "(require kazzmir/vi/tool)"
Then restart Drscheme.
2 Changelog
2.1 1.4
ctrl-t performs the "execute" action, as in the run button
ctrl-i re-indents all the source in the definitions pane
Keypad arrows move in escape mode
The ed command :e creates a new file before opening it if it didn’t already exist.
Some internal organization using mixins
2.2 1.3
ctrl-r performs ’redo’
ctrl-u deletes a line in insert mode
ctrl-w deletes a word in insert mode
various bug fixes
3 Usage
Vi mode provides the usual vi environment. You start in escape mode and move to other modes by pressing the responsibly key. The following (non-exhaustive) list of features are supported in escape mode.
i
w
b
j
k
h
l
p
x
$
^
R
u
n
N
a
A
o
z.
dd
d$
dw
==
J
G
gg
v
%
r<any>
cw
yy
ctrl-e
ctrl-R
ctrl-y
ctrl-d
ctrl-u
ctrl-w
ctrl-u
Some ed commands work. Press ’:’ then some command and enter.
w
wq
q
q! - Does the same thing as q for now
e filename
bn
bp
bd - Only in drscheme 4.1.3.2 and up
Searching works just like in vim, type ’/’ and some string. Searching doesn’t handle regex’s yet, though.
Press `esc’ to go back to escape mode at any time. Click the "Vi mode" button on the toolbar to disable/enable Vi mode.