[BusyBox] bug fix for vi applet

Sterling Huxley sterling at europa.com
Mon Apr 16 10:40:25 UTC 2001


Here is a patch for the vi applet that fixes several bugs and
adds several forgotten commands.
	- the max line length has been increased from 300 to BUFSIZ chars.
	- empty files were not handled very well.
	- "u' (little u) was an alias for "U" (big U).  This was confusing.  There
	    is no Undo facility.  But, there is a "Restore line" command (U).
	- Ctrl-R is now an alias for ctrl-L, Force a redraw of entire screen.
	- ESC can now be used to terminate line input for :, /, and ?.
	- The % and ^ position specifiers are available in the "c" and "d" cmds.
	- the :edit command had problems opening file which the user did not
	    have write permission on.

	- "%" is an allowable address in :colon (:) command meaning 1,$
	- Hitting the "Insert" key twice will start "R" replace mode.
	- The "G" command was added to goto a particular line in the file.
	- The "M": command was added to position cursor at the middle of screen.
	- :!cmd was added to run shell commands.
	- vi can now have a read-only mode for all of vi, rather than just an
	    individual file.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vi_bug1.patch
Url: http://lists.busybox.net/pipermail/busybox/attachments/20010416/a0f3875a/attachment.diff 


More information about the busybox mailing list