I can't get to grips with vi properly.
These are the few commands I understand:
I can just about get by with the above, however I've noticed a tendency for the file contents and the terminal display to get out of step. Usually the file is correct but the screen is wrong so anything that forces a refresh solves it. Usually I quit and re-enter vi to fix it.The problem I'm seeing occurs in the busybox vi whenever I try to insert into existing text. There is a work-around which is to move the cursor right then left before typing.
Also note that busybox vi appears to crash after prolonged use.
There is an alternative to vi called "vim" short for vi-improved. Vim does not show the above problem but it appears to have the limitation that you cannot use cursor keys while in insert mode.