Professional Documents
Culture Documents
Chapter 3
Chapter 3
Chapter 3
Fourth Edition
Chapter 3
Mastering Editors
Objectives
• vi is a visual editor
• vi is also a modal editor
– Supports three modes
• Insert mode
– Accessed by typing “i”
• Command mode
– Accessed by typing Esc
• Extended (ex) command set mode
– Accessed by typing “:” in command mode
• To Copy-Paste or Cut-Paste:
– Mark the text
• Position cursor at the beginning, and Ctrl+Spacebar
• Navigate to the end of the text you want to include:
– Alt+w copies the text
– Ctrl+w cuts the text
– To paste, move to where you want to place the text
• Ctrl+y (the yank command)