3.2.1 Modifying Existing Code

Try these commands to modify code:

KeyCommandDescription
xsymex-deleteDelete an expression. This accepts counts, so 3x deletes three expressions.
csymex-changeChange an expression to whatever you enter. This leaves Symex mode so that you can enter the replacement in the buffer. This accepts counts, so 3c changes three expressions.
ysymex-yankCopy the expression to the kill ring. This accepts counts, so 3y copies three expressions.
psymex-paste-afterPaste from the kill ring, after the current expression. This accepts counts, so 3p pastes three times.
Psymex-paste-beforePaste from the kill ring, before the current expression. This accepts counts, so 3p pastes three times.
<tab>symex-tidyTidies and indents the expression. This accepts counts, so 3<tab> indents three expressions.

Next, we’ll see a few simple ways to enter new code into the buffer in a context-sensitive way.