Try these commands to modify code:
Key | Command | Description |
---|---|---|
x | symex-delete | Delete an expression. This accepts counts, so 3x deletes three expressions. |
c | symex-change | Change 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. |
y | symex-yank | Copy the expression to the kill ring. This accepts counts, so 3y copies three expressions. |
p | symex-paste-after | Paste from the kill ring, after the current expression. This accepts counts, so 3p pastes three times. |
P | symex-paste-before | Paste from the kill ring, before the current expression. This accepts counts, so 3p pastes three times. |
<tab> | symex-tidy | Tidies 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.