start page | rating of books | rating of authors | reviews | copyrights

Book HomeBook TitleSearch this book

8.6. Interacting with Unix

:r fileRead in contents of file after cursor.
:r !commandRead in output from command after current line.
:nr !commandLike above, but place after line n (0 for top of file).
:!commandRun command, then return.
!object command

Send buffer object to Unix command; replace with output.

:n,m! command

Send lines nm to command; replace with output.

n!!commandSend n lines to Unix command; replace with output.
!!Repeat last system command.
:shCreate subshell; return to file with EOF.
CTRL-ZSuspend editor, resume with fg.
:so fileRead and execute ex commands from file.



Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.