You could use the busybox version of vi. If you're rooted then you can get it from the Market and it will install pretty trivially (example). Then you'd just need to execute
vi from a terminal and you're good to go. I don't know of any installers that don't require root, but there may be one floating around somewhere that will install to
/data/local or something.
Alternatively, you can do it the "manual" way. The following should work fine on an unrooted phone:
- Download a buxybox binary or build it yourself (here's a copy of 1.16.0 hosted on CyanogenMod's wiki).
- Copy the binary over to
adb is easy if you have it set up - just connect your tablet and use:
adb push /path/to/busybox /data/local. You could also put it on your SD card and then move it with a file manager.
- You may need to use
chmod to make it executable, which can be done from either a terminal emulator or an
adb shell -
chmod 0755 /data/local/busybox should suffice.
vi from a terminal with
Of course, if you just want any ol' editor you don't have to use vi. There are a bunch in the Market.