Workshop

The Workshop summarizes the key terms you learned and poses some questions about the topics presented in this chapter. It also provides you with a preview of what you will learn in the next hour.

Key Terms

addressing commands The set of vicommands that enable you to specify what type of object you want to work with. The d commands serve as an example: dw means delete word, and db means delete the preceding word.

command mode The mode in which you can manage your document; this includes the capability to change text, rearrange it, and delete it.

insert mode The vimode that lets you enter text directly into a file. The i command starts the insert mode, and Escape exits it.

modal A modal program has multiple environments, or modes, that offer different capabilities. In a modal program, the Return key, for example, might do different things, depending on which mode you were in.

modeless A modeless program always interprets a key the same way, regardless of what the user is doing.

transpose case To switch uppercase letters to lowercase, or lowercase to uppercase.

Exercises

1:What happens if you try to quit vi using :qw? Before you try it, do you expect it to work?
2:If you're familiar with word processing programs in the Mac or Windows environments, would you describe them as modal or modeless?
3:The d command is an example of a command that understands addressing commands. You know of quite a few. Test them to see whether they will all work following d. Make sure you see whether you can figure out the command that has the opposite action to the D command.
4:Do all the following three commands give the same result?
D
d$
dG

5:Imagine you're in command mode in the middle of a line that's in the middle of the screen. Describe what would happen if you were to type each of the following:
Badluck
Window
blad$

Preview of the Next Hour

The next hour expands your knowledge of the vi editor. It introduces you to the sophisticated search and replace capability, explores the useful colon commands, and details the command-line options you'll want to know.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.146.255.127