:! cmd | Executes shell command cmd; you can add these special characters to indicate:% name of current file# name of last file edited |
!! cmd | Executes shell command cmd, places output in file starting at current line |
:!! | Executes last shell command |
:r! cmd | Reads and inserts output from cmd |
:f file | Renames current file to file |
:w !cmd | Sends currently edited file to cmd as standard input and execute cmd |
:cd dir | Changes current working directory to dir |
:sh | Starts a sub-shell (CTRL-d returns to editor) |
:so file | Reads and executes commands in file (file is a shell script) |
!Motion_cmd | Sends text from current position to Motion Command to shell command cmd |
!}sort | Sorts from current position to end of paragraph and replaces text with sorted text |
No comments:
Post a Comment