To edit a file with vi do:
This is a bit misleading. On many systems, if you do vi file.txt
, you do indeed edit the file with vi
. You discuss vim
, and while vim
has many similarities
, not everything you discuss will work in vi
. For instance, not on every system will the arrow keys work as expected in vi
. There's no syntax highlighting in vi
, nor does vi
have any perl hooks.
It has 4 MODES.
That's just an opinion. One could also argue that vi
only has command mode. But some commands take
arbitrary long arguments. ;-)
Abigail (using vi since 1984)