Interacting with the Shell
Command |
Action |
---|---|
:r |
Read in contents of |
:r ! |
Read in output from |
:nr ! |
Like preceding, but place after line n (0 for top of file). |
:! |
Run |
! |
Send |
: |
Send lines |
|
Send |
!! |
Repeat last system command. |
!! |
Replace current line with output of
|
:sh |
Create subshell; return to file with EOF. |
Ctrl-Z |
Suspend editor; resume with fg. |
:so |
Read and execute |
Get Mac OS X Panther in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.