
Discover the vi editor basics for unix beginners, explore its features, and build familiarity by hands-on practice and personal examples to learn by doing.
Learn how to start the vi editor, create and edit files, save changes, and navigate the screen with left-side signs and the two keys near backspace.
Begin in command mode, switch to insert mode with i or a, then return with escape. Save with :w, quit with :q!, and move to the end of a line.
Explore the vi editor's two modes—command and insert—where short keystroke commands manipulate text; start in command mode and use the escape key to exit insert mode.
Demonstrates switching between command mode and insert mode in vi, typing text, and using escape to move, then saving with :w and quitting with :q.
Learn to save and quit the vi editor: quit with q, force quit with q!, save with w, and save as a new file with :w filename.
Demonstrates saving and quitting in the vi editor, using w to save to the current or another file, and q or q! to quit.
Learn and practice the basic text and command modes to use the editor more efficiently. Use insert mode and the escape key, and complete a practical exercise.
Master basic text entry and command modes in vi by practicing inserts, navigating to the next line, and managing lines during a hands-on session.
Learn yanking and pasting lines in vi, deleting or cutting, and pasting after the cursor or at line end with P and p; practice using the buffer and saving changes.
Explore cutting, yanking, and pasting lines in vi, comparing small p and capital P placement, using a cursor buffer, and undoing changes for precise line edits.
Learn to yank and paste in vi by using the yank command to copy text without deleting, compare with dd, yank the current line, and paste below with p; practice.
Explore how to yank and paste in vi, using y y to copy without deleting, dd to delete, and paste, then undo changes within a session.
Master vim navigation with h, j, k, and w to move left, down, up, and across words; yank three lines with y, then paste with p, and undo.
Learn Vim basics: move with h j k l and w, copy with yank, paste with p, undo with u, and jump to end with G.
Learn to search text in vi using slash and question mark, move to matched words, and wrap around to the beginning when reaching the file end.
Explore text searching in vi using the forward slash and question mark, searching from top or bottom, and observing navigation through the document before concluding the session.
Replace strings of text in a file using the substitution command s/oldword/newword/g, from first to end of the file, and use the view command (or v) to read content.
Learn to replace strings of text with another word using the command column, from position 1 to the end of the file, and see how substitutions update the document.
Explore advanced cutting and pasting in vi, using buffers and quotation marks to specify text, delete and yank operations, and cursor-based line manipulation.
Master advanced cutting and pasting in vi by using the x command to delete the character before the cursor and the c command to highlight text.
Master advanced inserting text in vi by using insert mode to add characters after or before the current cursor position, including inserting on a new line.
Demonstrate advanced text insertion in vi, showing how to insert at the end or the beginning of a line and create new lines through practical commands.
Master advanced vi cursor movements, including page and line scrolling, end-of-line jumps, first non-whitespace character jumps, and navigation to sentences, paragraphs, and matching parentheses.
Practice advanced cursor movements in a vi-style editor, using ctrl+h to move left, ctrl+p to move up, ctrl+j to move down, and page controls to scroll the window.
Master vi advanced screen cursor movements using ctrl-d and ctrl-u to scroll, and z commands with numeric counts to place the current line at top, center, or bottom.
The lecture demonstrates advancing screen cursor movements by repositioning a line to the top, middle, and bottom of the screen and scrolling forward or backward one line using keyboard controls.
Master advanced text replacement in vi by using s to replace a single character under the cursor, and c to change text with insert mode, counts, and the escape key.
Master advanced text searching in vi by using forward slash and question mark searches, and navigate with motion commands to move to specific characters, lines, and positions.
Master advanced vi commands to manipulate characters and line formatting, including switching case, shifting lines with < or > by a count, and joining lines with J.
Join this session to learn advanced character and line formatting in vi, including changing letter case, joining lines, and cutting text around the cursor.
Master advanced saving and quitting in the line editor built on the X command, using q to quit and colon commands to switch between editing and command modes.
Master saving and quitting in a line-by-line editor, using commands to save changes, quit with or without saving, and safely exit the editor and file.
Explore misc commands in vi, including control key shortcuts, escaping and exclamation point usage, redrawing the screen, moving through and executing commands, and undoing changes in buffers.
Explore ex commands built on the x editor, including entering mode, using abbreviations and mappings, and performing substitutions with colon, q, w, and write options.
Join a hands-on vi lab that teaches creating, editing, and saving files with vi, using man pages. Practice navigation, search and replace, and yanking buffers across files to build proficiency.
Encourage learners to continue engaging in discourse, wishing them future success and inviting them to join me in discourse to benefit more folks.
Although other text editors may be easier to use, vi is built into all Unix systems (including Linux and Mac OS). Knowing a few basic vi commands guarantees you'll be able to work with these systems when no other editor is installed. In this course, I will show you how to get in and out of vi, switch modes, and start editing files in place. Learn how to change text within a file, use commands like undo and yank, find and replace text, and invoke more advanced Unix commands. Although it may be mysterious, vi is still the standard text editor for all Unix systems. Start learning it now and run your systems more smoothly in the future.
Topics include:
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
And more!