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!
Execute the following line in Drscheme or Mzscheme "(require kazzmir/vi/tool)"
Then restart Drscheme.
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
ctrl-r performs ’redo’
ctrl-u deletes a line in insert mode
ctrl-w deletes a word in insert mode
various bug fixes
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.
Some ed commands work. Press ’:’ then some command and enter.
q! - Does the same thing as q for now
bd - Only in drscheme 220.127.116.11 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.