…In addition to moving the cursor be textual units,…you can also move according to lines.…The caret character moves the cursor to the beginning of the current line.…The dollar sign character moves the cursor to the end of the current line.…The command, one shift G, moves the cursor to the first line of the file,…no matter where it is.…The command, shift G, by itself moves the cursor to the last line of the file.…That one is just a special case.…You can type any number, followed by a capital G,…to move the cursor to the nth line of the file.…
If you're editing program language source, and…the cursor is sitting on a parenthesis, brace or bracket,…the percent key will move the cursor to the matching parenthesis or bracket.…You can always use the control g command to find out the current line number and…the file status, and you can use a number before any movement command.…So let's edit a program source file.…So in this case, I can use dollar sign to move to the end of the current line or…caret to move to the beginning of the current line.…
Author
Released
9/4/2014- Identifying vi’s modes.
- Distinguishing how to move around within files.
- Explain ways to edit text such as inserting text.
- Determine how to move content using undo, repeat, and yank.
- Break down how to utilize editing features such as auto-indent, indenting, and word wrap.
- Recognizing how to filter text through shell commands.
Skill Level Beginner
Duration
Views
Related Courses
-
Introduction
-
Welcome38s
-
-
1. Exploring vi
-
What is vi?2m 26s
-
-
2. Getting Started with vi
-
Entering and leaving vi2m 4s
-
Managing files4m 40s
-
-
3. Moving Around within a File
-
Moving the cursor3m 49s
-
Moving by lines3m 15s
-
Scrolling the text1m 52s
-
-
4. Basic Text Editing
-
Inserting text2m 45s
-
Deleting text2m 43s
-
Changing text3m 38s
-
-
5. Undo, Repeat, Yank, and Put
-
6. Search and Replace
-
Searching text2m 12s
-
Regular expression examples3m 38s
-
-
7. Advanced Editing Features
-
Conclusion
-
Goodbye45s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Moving by lines