Stedi has a rudimentary knowledge of words allowing a number of word-oriented commands to be built in. For most purposes of the editor, a word is defined in one of two ways. A word is defined as either a string of alphanumeric characters delimited by a non-alphanumeric character or a single non-alphanumeric character of a certain class.
In order to make these definitions precise, let us separate the various characters into three classes:
! "
# $ % & ' ( ) * + , - . / @ [ \ ]
^ ` { | } ~
and
It is possible to change the class of a character with the command
set <char> = on/off/singleThe value on puts the character in class 1, the value single puts it in class 2 and the value off puts it in class 3. Example:
set <$> = on set <_> = singleThis setting would be appropriate for Fortran. When the default file is written with the DW command (p.
In stedi a word is defined to be either a string of class 1 characters delimited by characters from either class 2 or class 3 or a single character from class 2. Below, we will refer to the first of these definitions as a type 1 word and the second as a type 2 word.