25 lines
572 B
Plaintext
25 lines
572 B
Plaintext
1. Move the cursor to this line.
|
|
|
|
2. Press [v](v) and move the cursor to the fifth item below. Notice that the
|
|
text is highlighted.
|
|
|
|
3. Press the `:`{normal} character. At the bottom of the screen
|
|
|
|
`:'<,'>`{vim}
|
|
|
|
will appear.
|
|
|
|
4. Type
|
|
|
|
`w TEST`{vim}
|
|
|
|
where TEST is a filename that does not exist yet. Verify that you see
|
|
|
|
`:'<,'>w TEST`{vim}
|
|
|
|
before you press `<Enter>`{normal}.
|
|
|
|
5. Neovim will write the selected lines to the file TEST. Use `:!ls`{vim} to see it.
|
|
Do not remove it yet! We will use it in the next lesson.
|
|
|