transpose-chars(2)transpose-chars - Exchange (swap) adjacent characters transpose-lines - Exchange (swap) adjacent lines
transpose-chars (C-t)
n transpose-lines (C-x C-t)
transpose-chars exchanges (swaps) the current character under the cursor with the previous character. transpose-characters does not operate in column 0 (since there is no previous character). If the cursor is at the end of a line when the command is initiated then the cursor is moved to the previous character and the operation performed from the new position.
transpose-lines swaps the next line for the current line and moves to the next line, effectively retaining the same text position. Repeating this n times moves the current line n lines down.
transpose-character performs the following operations (cursor at ^):
abcde => acbde [Middle of line] ^ ^ abcde => abced [End of line] ^ ^
Ref: transpose-chars(2) File: m2cmd135.2 Date: 2025/07/23
(c) Copyright JASSPA 2026