ex commands can be entered by specifying any unique abbreviation. In this listing, the full name appears in the margin, and the shortest possible abbreviation is used in the syntax line. Examples are assumed to be typed from vi, so they include the : prompt.
abbrev | ab [string text] Define string when typed to be translated into text. If string and text are not specified, list all current abbreviations. ExamplesNote: ^M appears when you type ^V followed by Return. :ab ora O'Reilly & Associates, Inc. :ab id Name:^MRank:^MPhone: |
append | [address] a[!] text . Append text at specified address, or at present address if none is specified. Add a ! to toggle the autoindent setting that is used during input. That is, if autoindent was enabled, ! disables it. |
args | ar Print the members of the argument list (files named on the command line), with the current argument printed in brackets ([]). |
change | [address] c[!] text . Replace the specified lines with text. Add a ! to switch the autoindent setting during input of text. |
copy | [address] co destination |