Top Banner
Chapter 9 Using Text Editors
16

Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

Dec 13, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

Chapter 9Using Text Editors

Page 2: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

vi Editor

visual Editor, ASCII text editor, no formatting capabilities

almost as powerful as MS Word, has 26 clipboards (A-Z) and has its own book

useful when working remotely on unix workstations, called the number one tool for the network administrator

either love it or hate it, but very cryptic

no mouse or arrows to position cursor!

universally available on UNIX systems, used for remote login or telnet

Page 3: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

vi Modes

command - initial mode, opening files, positioning cursor, modifying existing text

entry - enter or append text

last line - save, exit, edit session

Page 4: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

Moving Between vi Modes

Page 5: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

Moving Between vi Modes

Page 6: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

vi Command Syntax

$ vi [option(s)] [filename]

vi – by itself, starts the vi editor and opens a new file (not yet named)

vi filename – if file exists it is opened for editing - if not it’s created

vi -r filename - recover a crashed file

vedit - Starts the vi editor with showmode - displays the entry mode

view – in read-only mode - no changes

Page 7: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

vi Command Mode

(J)ump down

(k)ick up

(h)ind site – backward or left arrow

(l)ead on – forward or right arrow

Page 8: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

vi Entry Mode

Page 9: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

vi Last Line Mode

Page 10: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

vi Editing Commands

In Command Mode:

delete

undo, change

copy, paste

Page 11: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

vi Editing Commands

In Last Line Mode:

edit session

search

Page 12: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

CDE Text Editor

Page 13: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

Lab 9.1.8 – Using the vi Editor

Lab 9.2.6 – User the CDE Text Editor

chapter 9 assessment

Labs/Assessment

Page 14: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

1. Create a new file called bio and populate it with info and then save it.

Chap 9 Exercise

Page 15: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.

1. Create a new file called bio and populate it with info and then save it.

$ vi bioAutomatically in entry mode as if pressed “i” rt Add informationEsc key to get back into command mode:wq (writes buffer to file – saves file and exit)

Chap 9 Exercise (Solution)

Page 16: Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.