You can also use C-x c-h to list all commands in Emacs, find C-x R C, and all column mode commands are c-x R [email protected] Point-to-register starting with C-x R
C-x R SPC Point-to-register
C-x R + Increment-register
C-x R B Bookmark-jump
C-x R C Clear-rectangle
Set a mark with c-space or [email protected], move the cursor to another point, and use C-x R C to clear mark to the rectangular area at the cursor, leaving the area blank.
C-x R D Delete-rectangle
Removes the rectangular area, leaving no space, followed by a character that moves forward
C-x R F Frame-configuration-to-register
C-x R G Insert-register
C-x R i Insert-register
Insert the contents of a register somewhere
C-x R J Jump-to-register
C-x R k Kill-rectangle
is to cut a selected rectangular area and use c-x R y to paste
C-x R L bookmark-bmenu-list
C-x R M Bookmark-set
C-x R N Number-to-register
C-x R o Open-rectangle
Inserts a blank in the selected rectangular area
C-x R R Copy-rectangle-to-register
Copies the selected rectangular area to a register
C-x R S Copy-to-register
C-x R T String-rectangle
Insert the same character before all columns in the selected range
C-x R W Window-configuration-to-register
C-x R x Copy-to-register
C-x R y Yank-rectangle
Paste similar to the rectangular area, which is to paste the rectangular area just with the C-x R K cut.
C-x R C-SPC Point-to-register
Original column mode
from:http://blog.csdn.net/meteor1113/article/details/4349274
Emacs takes a rectangular operation with commands beginning with C-x R. Use c-space or [email protected] to set a mark and move the cursor to another point to perform a column operation with the following command:
C-x r K cuts a rectangular block c-x R y Pastes a rectangular block c-x r O Inserts a rectangular block c-x R C clears a rectangular block (making it blank) C-x R T inserts a kind of character before all columns in the selected range
Cua-mode supported visual column modes
In addition to the column patterns supported by Emacs itself, Emacs supports a visual column pattern through Cua-mode. Under Cua-mode, press [C-return] to enter CUA rectangle mode. In this mode, you can click the mouse to confirm the starting point, and then use the cursor key to select a rect range, this rect will be displayed in a different color. We can then easily manipulate this rect. For example [M-up],[m-down],[m-left],[m-right] can move this Rect,[c-return] can cancel this rect,[c-space] can exit Cua-rect mode and activate the selection in normal mode.
Cua-mode You can use the following command to perform a column operation:
Direct input characters: insert this character before (or after) each line [M-b]: Replace all characters in rect with a space (tabs or spaces) [M-c]: Remove the space to the left of all rows [m-f]: Replace all characters in rect with a single character (prompt for a character) [M-i ]: Add 1 to the first number found in each row (automatically starts the 0x as a hexadecimal number) [M-k]: Cut rect [m-l]: Convert the contents of a rect to lowercase [m-m]: Copy rect [m-n]: replace each row in the rect with a string of self-increment numbers ( This function can be used to number each line) [M-o]: Rect's content is shifted right, and the selected rect is filled with a space [m-r]: string substitution character to satisfy regular expression [m-r]: Upside Down [m-s]: replace each row in rect with a string (prompt for input) [m-t ]: Replace rect whole with a string (prompt for input) [m-u]: Convert all contents of rect to uppercase [m-|]: Execute a shell command on rect
There are some other commands that you can see directly cua-base.el (Emacs22 has come with Cua-mode).
Emacs Column Operations