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 very alpha, 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 Uninstall
On the command line
$ planet show |
kazzmir vi.plt 1 0 |
$ planet remove kazzmir vi.plt 1 0 |
Or if you wish to keep vi.plt around edit tool.ss and search for "(define tool" "\n" " " "...)"
Then comment out the line that extends the Drscheme definitions text. "(drscheme:get/extend:extend-definitions-text definition-text)"
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.
Movement keys - h, j, k, l, ^, $
Cut - x
Paste - p
Copy - y
Visual mode - v
Repeat - <number> then a command
Press `esc’ to go back to escape mode at any time.