Emacs Rectangle Operation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.