Документ взят из кэша поисковой машины. Адрес оригинального документа : http://comet.sai.msu.ru/UNIXhelp/examples/vi4.html
Дата изменения: Fri Jan 17 12:43:16 1997
Дата индексирования: Mon Oct 1 23:09:01 2012
Кодировка:

Поисковые слова: m 8
Examples of inserting the contents of another file

Examples of inserting the contents of another file

To insert a file immediately after the line containing the cursor:

   :r examples.txt

This inserts the contents of the file examples.txt immediately after the current line.


To insert the contents of another file after a specific line in the current file:

   23:r toc.txt

This inserts the contents of the file toc.txt after line 23 of the current file. Line 24 is empty; the contents of the inserted file begin at line 25.


[Home] [Search] [Index]