Miscellaneous Commands

This tutorial does not treat the commands of the editor exhaustively. Stedi contains a number of other commands that can make life easier for the programmer. Here a few of these are singled out just to illustrate some of the more advanced features of the editor.

Alt-=
searches for a matching bracket. If the cursor is on a bracket of any of the types ( ), { } or [ ] then this command looks for a matching one. If one is found the cursor jumps there. If none is found, a message is printed. This command is very useful for making sure that all brackets in a program have a partner.

Ctrl-R
repeats the last command that was given to the command line.

Ctrl-A
searches for the next occurrence of a word. If the cursor is on a word, this commands finds the next place where exactly that word occurs.

Ctrl-B
searches for the next occurrence of the word in the buffer that is made when the Ctrl-A command was last used. Thus you can search for the next occurrence of the same word, change it or move the cursor away, and then use this command to search for a further occurrence of that word.

Ctrl-H
allows the insertion of hexadecimal code for a character directly into the text being edited or into the command line. This can be useful in entering non-standard ascii characters for search and replace or printer codes.