Join David D. Levine for an in-depth discussion in this video Inserting text, part of Learning vi.
…Now that you know how to move the cursor around within the file, I'm going to show…you how to make some actual changes, which is kind of the point of a text editor.…All of these commands enter insert mode.…You type the command in command mode, it puts you into insert mode,…which means that from this point forward, the characters that you…type are actually inserted into the file rather than be interpreted in commands.…And then you press the Escape key to return from insert mode to command mode.…So the lower case i begins inserting before the current cursor position.…
The upper case I inserts at the beginning of the line.…The lower case a appends text after the current cursor position.…And the capital A appends at the end of the line.…So you see, i and a, the lowercase versions insert where the cursor is, and…the uppercase versions go to the beginning and end of the line.…Finally, the character o opens a new line below the current cursor position.…Whereas Shift+O, capital O, opens a new line above.…I'll demonstrate these.…
AuthorDavid D. Levine
- Entering and leaving vi
- Understanding the Command, Insert, and Colon modes
- Moving around in files
- Editing text
- Moving content with delete, yank, and put
- Searching with regular expressions
- Customizing vi
- Filtering text through shell commands
Skill Level Beginner
1. Exploring vi
What is vi?2m 26s
2. Getting Started with vi
3. Moving Around within a File
4. Basic Text Editing
5. Undo, Repeat, Yank, and Put
6. Search and Replace
7. Advanced Editing Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.