The rectangular operation of Emacs is very useful.
Kill-rectangle operation
The shortcut keys for binding are:c-x R k
Like the text below,
Try to delete the middle column: 3c21 646f 63746874 6d6c 3e3c2063 6861 7273202f 3e0a 3c6d6965 7770 6f722277 6964 7468
The operation is as follows:
+ Place the cursor in front of the 646f
+ Call the Set-mark-command command, or use the shortcut key Ctrl+space
+ Move the cursor to the back of 6964
+ Call Kill-rectangle
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/78/66/wKiom1Z7j-Kzb5NJAAAbHTv_G9E540.gif "title=" Rectangle01.gif "alt=" Wkiom1z7j-kzb5njaaabhtv_g9e540.gif "/>
Replace-rectangle operation
The shortcut keys for binding are:c-x R T
Like the text below,
Try to replace the middle one column Hello:3c21 646f 63746874 6d6c 3e3c2063 6861 7273202f 3e0a 3c6d6965 7770 6f722277 6964 7468
The operation is as follows:
+ Place the cursor in front of the 646f
+ Call the Set-mark-command command, or use the shortcut key Ctrl+space
+ Move the cursor to the back of 6964
+ Call Replace-rectangle
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/78/65/wKioL1Z7kcWTZv-XAAAbHQPx9YA648.gif "title=" Rectangle02.gif "alt=" Wkiol1z7kcwtzv-xaaabhqpx9ya648.gif "/>
Paste-rectangle operation
The shortcut keys for binding are:c-x R y
Like the text below,
Try inserting a column just copied in the middle: 3c21 63746874 3e3c2063 7273202f 3c6d6965 6f722277 7468
The operation is as follows:
+ Place the cursor between 3C21 and 6374
+ Call the Paste-rectangle command, or use the shortcut key c-x R y
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/78/66/wKiom1Z7kb_xSFQJAAAbHVb1Td0868.gif "title=" Rectangle03.gif "alt=" Wkiom1z7kb_xsfqjaaabhvb1td0868.gif "/>
This article is from the "Tiandaochouqin" blog, make sure to keep this source http://lavenliu.blog.51cto.com/5060944/1727865
Emacs Rectangle Operation