| Line 1: | Line 1: | ||
| + | <seo title="Command Syntax | vEdit" description="Learn how to use Command Syntax with vEdit Command Mode"></seo> | ||
| + | {{DISPLAYTITLE:Command Syntax }} | ||
| + | |||
vEdit's '''Command Syntax''' loosely follows the syntax of the "C" programming language. The format of commands is: | vEdit's '''Command Syntax''' loosely follows the syntax of the "C" programming language. The format of commands is: | ||
| Line 32: | Line 35: | ||
==Other Resources== | ==Other Resources== | ||
| − | *[[Command Mode | + | *[[Command Mode| Command Mode Overview]] |
| − | + | ||
| − | + | ||
*[[Command Line Overview]] | *[[Command Line Overview]] | ||
| − | |||
vEdit's Command Syntax loosely follows the syntax of the "C" programming language. The format of commands is:
Command( arguments )
Command names can be entered in any combination of upper and lower case letters. To improve readability, we usually capitalize the first letter of each command word, e.g. Type_Space( ).
The _" character is optional and is only intended to improve readability. Most commands have a short abbreviation. It is often, but not always, the first letter of each command word.
Therefore, the following commands Type_Space( ), typespace( ), TS( ), and ts( ) are all identical.
Many commands take one or more arguments which must be enclosed in parentheses "(...)". With a few exceptions, commands that take no arguments can have the empty "( )" left off.
Commands that take a single numeric argument, e.g. Type_Space( ), will use the default argument of "1" if no argument is specified.
Therefore, the following commands Type_Space(1), Type_Space( ), Type_Space( ), and TS are all identical.
Multiple commands may be typed one after another on a command line. They are always executed left to right. Their effect is the same as if each command had been typed on its own command line. For clarity's sake, you should leave a space between the commands. For example, the three command lines, each with a single command:
Begin_Of_File Print(ALL) V
are equivalent in operation to the single command line with three commands:
Begin_Of_File Print(ALL) V
You will often want to use a sequence of commands over and over again. We refer to any sequence of commands as a Command macro. Command macros can be saved to disk as ".vdm" and/or assigned to keystroke macros, or added to the {USER} menu for easy access. More command marco details