14 lines
515 B
Plaintext
14 lines
515 B
Plaintext
1. Move the cursor to this line.
|
|
|
|
2. Press v and move the cursor to the fifth item below. Notice that the
|
|
text is highlighted.
|
|
|
|
3. Press the : character. At the bottom of the screen :'<,'> will appear.
|
|
|
|
4. Type w TEST , where TEST is a filename that does not exist yet. Verify
|
|
that you see :'<,'>w TEST before you press <ENTER>.
|
|
|
|
5. Vim will write the selected lines to the file TEST. Use :!dir or :!ls
|
|
to see it. Do not remove it yet! We will use it in the next lesson.
|
|
|