Open the terminal and issue,
# vi
Eg : # vi myfirstfile
Insert Text in to the file Using i, a, o, and O
The first way to switch to insert mode is to type the letter i, which, mnemonically enough,inserts text into the file. The other commands that accomplish more or less the same thingare a, to append text to the file; o, to open up a line below the current line; and O, to open up a line above the current line.
Deleting Text
The simplest form of the delete command is the x command, which functions as though you are writing an X over a letter you don’t want on a printed page: It deletes the character under the cursor. Type x five times, and you delete five characters.
No comments:
Post a Comment