I use the Putty to logon to my account. I think I should type
vi -r
in the command window. And I do not know what to do next. Could anybody guide me? Thanks.
Well, I'll give this one a shot...
First, just use... "vi filename.ext" instead of the "-r" option to open the file that you want.
Second, cursor controls may not work -- older version of "vi" did not really support it. Just try to move the cursor. If you get junk, just disconnect and try again.
If cursor control doesn't work, use the letters "h", "j", "k", and "l", to move the cursor around. I believe the leftmost key moves the cursor left, and the rightmost key move the cursor right. Don't remember which of the two remaining keys are for up and down.
Third, when you are over a letter, pressing "x" will delete the letter.
Fourth, when you want to insert something, pressing "i" will put you in insert mode. At this point, just type what you want to insert. Pressing the "esc" key should take you out of insert mode.
Fifth, pressing "a" will put you into append mode. This is the same as insert mode, except you will insert after the current letter. This is good for adding stuff at the end of the line.
And finally, when you are done... make sure you are not in insert or append mode.
Pressing ":" will make a prompt appear on the bottom. Entering a "w" followed by a return will save the file back.
Pressing ":q" followed by a return will exit vi.
Henry
[ May 13, 2006: Message edited by: Henry Wong ]