- Choosing an Editor: nano/pico or vi/vim
- Starting nano and Dabbling with It
- Saving in nano
- Cutting and Pasting Text Blocks in nano
- Checking Spelling in nano
- Getting Help in nano
- Exiting nano
- Starting vi (or vim) and Dabbling with It
- Saving in vi
- Adding and Deleting Text in vi
- Importing Files into vi
- Searching and Replacing in vi
- Exiting vi
Importing Files into vi
You can also merge multiple files in vi by reading additional files into the current one, as shown in . Basically, all this means is that you insert one file into the file you’re currently editing.
Reading an additional file into the current one can make your editing tasks much easier.
To import files in vi:
At the shell prompt, type vi followed by the filename—in this case, the hairyspider file.
At the point in the file where you want to import text, press , then type :r and the filename you want to read into the file.