Day 39th: Vim Delete exception and shortcut keys

Source: Internet
Author: User

Small Q: busy you will feel that nothing is missing, after the empty you will feel nothing;


Example:

Our frequently used delete keys: D x DD, today I know another da delete command;

For example, if you ask for a longer string, I want to delete a large number of letters and numbers in the middle:

2222222222222222222222b3nzac1yc2eaaaabiwaaaqeav5ojvuidaavusdoa2fbfnl0k2gbtc05yg6tgm+ 8snlei6bu5mhay2up5j4ycrmu43911hej2uh1upycwx1o4xpegum8tgis1hoqysnukv3g121uolacrj37qql9j4rrhruxhunaw3allsgiv0mxfd0apyycfola /1i3hu7yy45353545445564564x7tdripwz0fehhht3qjfe9yc8z6ptq7cvbpxbbvc/ g8pxvq3bngmtj9ifmbh7nntvfhnezgacf2mr4fsy0mmunl0k3x5sblsyp9/rxy9cpoh73ekuhzqok3uwjwudrp/dqrxgwdveg0nz+0t130pku/ lsreothwovbu54rrtuuidb3sq0xsw4x9ehkgjjhpvbrbgbidptkbuahdqefmqqpaweex1hmc7lcunnfgtzf39pv/ 2vqqqqqqqqqqqqqqqqqq8a6sf4efz5viakorysmqu/6my4s9au3arbx+jvue9s2/7d+jdqjlintqqru4v92lqq3bjasmmkiwnpsytxdtari3+ 8i2xxqfcj5bby7e33333333333333333333334444444444


At this time can not be deleted with DD, with x efficiency is too slow; Of course, you will think of the first copy of the non-deletion, and then DD;

Here is a more useful tool for da :

2222222222222222222222{b3nzac1yc2eaaaabiwaaaqeav5ojvuidaavusdoa2fbfnl0k2gbtc05yg6tgm+ 8snlei6bu5mhay2up5j4ycrmu43911hej2uh1upycwx1o4xpegum8tgis1hoqysnukv3g121uolacrj37qql9j4rrhruxhunaw3allsgiv0mxfd0apyycfola /1i3hu7yy45353545445564564x7tdripwz0fehhht3qjfe9yc8z6ptq7cvbpxbbvc/ g8pxvq3bngmtj9ifmbh7nntvfhnezgacf2mr4fsy0mmunl0k3x5sblsyp9/rxy9cpoh73ekuhzqok3uwjwudrp/dqrxgwdveg0nz+0t130pku/ lsreothwovbu54rrtuuidb3sq0xsw4x9ehkgjjhpvbrbgbidptkbuahdqefmqqpaweex1hmc7lcunnfgtzf39pv/ 2VPXZ2L8NH2JEM0NRS48A6SF4EFZQQQQQQQQQQQQQQQQQQ}u/6my4s9au3arbx+jvue9s2/7d+ jdqjlintqqru4v92lqq3bjasmmkiwnpsytxdtari3+8i2xxqfcj5bby7e33333333333333333333334444444444


use 0 and $ first to move to the first and the end of the section that will be removed with {} , or any pairs of symbols enclosed in the first curly brace

input da, can be removed from the enclosed section;


Another common way to delete: Press vdirectly, and then move the cursor can select the text, after the selection, directly press D, deleted.



Common shortcut keys:

1, note all lines: Ctrl + V j/k+ shift +i

2. Check the cursor's current man manual shift+k

3,d+f+ characters

4, check area v+t+ characters

5. Delete all characters after the cursor in VIM shift+d

6, delete the word on the current cursor d+i+w

7, select the word on the current cursor v+i+w





Day 39th: Vim Delete exception and shortcut keys

Related Article

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.