You must be in Command Mode to use commands that move the cursor. If in insert mode, enter command mode by hitting the escape,, key. To enter text, you must enter insert mode. When entering a file, vi is in command mode. Command mode is the mode to be in when giving commands which will move the cursor, delete text, copy and paste, save the file etc. Insert mode is the mode to be in when inserting text into the file. CommandĮdit filename starting at the first line containing pattern Example: > vi letter will open a new file called letter to edit, or if letter already exits, open the exiting file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |