Join David D. Levine for an in-depth discussion in this video Indenting, auto-indent, and word wrap, part of Learning vi.
…Now, I'm going to talk about indenting and word wrap.…The angle bracket commands, indent and outdent the current line.…Two pointed brackets to the right indent the current line,…that is to say they move it to the right.…Two pointed brackets to the left outdent the current line,…that is to say they move it to the left.…Both of these perform their indent or outdent by a single tab stop.…The pointy bracket commands, like with delete, can use a number beforehand or…any movement command.…For example, you can say, two pointed bracket,…pointed bracket to indent two lines.…
Or you can say, bracket brace to indent an entire paragraph.…Vi also includes an auto-indent capability.…When auto-indent is turned on, whenever you are in a line that is indented.…If you add a new line after it, either by hitting a return in insert mode or…by using the O command to open a new line.…The new line will be indented at the same level as the character above it.…If you want to undo an indent while you are in insert mode, you can hit Ctrl+D.…
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.