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 (planet \"tool.ss\" (\"kazzmir\" \"vi.plt\")))"
Then restart Drscheme.
2 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
Insert mode
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.