# transpose-chars(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

transpose-chars - Exchange (swap) adjacent characters transpose-lines - Exchange (swap) adjacent lines

## SYNOPSIS

transpose-chars (C-t)
n transpose-lines (C-x C-t)

## DESCRIPTION

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.

## EXAMPLE

transpose-character performs the following operations (cursor at ^):-

    abcde  => acbde         [Middle of line]
      ^         ^

    abcde  => abced         [End of line]
         ^         ^

## SEE ALSO

sort-lines(2).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>