OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

Opening A Line

Another way we can insert text is by “opening” a line. This inserts a blank line between two existing lines and enters insert mode. This has two variants:


Table 12-2: Line Opening Keys


Command Opens

Command Opens

o The line below the current line.


image

O The line above the current line.


image


We can demonstrate this as follows: place the cursor on “Line 3” then press the o key.


The quick brown fox jumped over the lazy dog. It was cool. Line 2

Line 3


Line 4

Line 5

The quick brown fox jumped over the lazy dog. It was cool. Line 2

Line 3


Line 4

Line 5


A new line was opened below the third line and we entered insert mode. Exit insert mode by pressing the Esc key. Press the u key to undo our change.

Press the O key to open the line above the cursor:


The quick brown fox jumped over the lazy dog. It was cool. Line 2

The quick brown fox jumped over the lazy dog. It was cool. Line 2



Line 3

Line 4

Line 5


Line 3

Line 4

Line 5


Exit insert mode by pressing the Esc key and undo our change by pressing u.


Top OS Cloud Computing at OnWorks: