3 - Weber State University
3 - Weber State University
3 - Weber State University
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
112 Chapter 3 Exploring Linux Filesystems<br />
~<br />
~ Become a registered Vim user!<br />
~ type :help register for information<br />
~<br />
~ type :q to exit<br />
~ type :help or for on-line help<br />
~ type :help version7 for version info<br />
~<br />
~<br />
~<br />
~<br />
~<br />
~<br />
~ 0,0-1 All<br />
The tilde (~) characters on the left indicate the end of the file; they are pushed further down the<br />
screen as you enter text. The vi editor is called a bimodal editor because it functions in one<br />
of two modes: command mode and insert mode. The vi editor opens command mode, in which<br />
you must use the keyboard to perform functions, such as deleting text, copying text, saving<br />
changes to a file, and exiting the vi editor. To insert text into the document, you must enter insert<br />
mode by typing one of the characters listed in Table 3-5. One such method to enter insert mode<br />
is to type the i key on the keyboard while in command mode; the vi editor then displays<br />
--INSERT-- at the bottom of the screen and allows the user to enter a sentence such<br />
as the following:<br />
This is a sample sentence.<br />
~<br />
~<br />
~<br />
~<br />
~<br />
~<br />
~<br />
~<br />
~<br />
-- INSERT --<br />
Key Description<br />
i Changes to insert mode and places the cursor before the current character for entering text<br />
a Changes to insert mode and places the cursor after the current character for entering text<br />
o Changes to insert mode and opens a new line underneath the current line for entering text<br />
I Changes to insert mode and places the cursor at the beginning of the current line for entering text<br />
A Changes to insert mode and places the cursor at the end of the current line for entering text<br />
O Changes to insert mode and opens a new line above the current line for entering text<br />
Esc Changes back to command mode while in insert mode<br />
Table 3-5 Common keyboard keys used to change to and from insert mode<br />
© Cengage Learning. All rights reserved. No distribution allowed without express authorization.