Join David D. Levine for an in-depth discussion in this video Using some other editing commands, part of Learning vi.
…Now I"m going to discuss some editing commands,…which I've lumped together under the heading, Miscellaneous.…The command Shift+R, enters overwrite mode.…Which is to say,…that the characters you type replace the characters that are already in the file.…You can hit Esc to exit overwrite mode.…The command Tilde changes the case of the character at the cursor.…It changes an upper case letter to a lower case, and vice versa.…And the command Shift+J, joins the next line to the current line.…The delete commands that you've already learned do not actually function on…the new line character at the end of the line.…
You cannot use an x to delete the new line character at the end of a line.…The only way to delete a new line is to use Shift+J to join two lines together.…You can use a number before any of these.…So, let's demonstrate this.…We'll use our Duke of York example again.…So, let's go into overwrite mode.…I'll do J, J, W and then I'll hit Shift+R.…Notice that it says at the bottom REPLACE or, I would call it overwrite.…
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.