vim的寄存器动作真是太酷了

进入vim的nomal模式

  • 打开文件后, esc进入nomal模式

准备录制

  • qr进入录制, q是录制的标识, r是给将要录制的寄存器动作起的名字

录制动作

  • dd删除一行

  • jj向下移动两行

  • dd再删除两行

  • q退出录制

重复刚刚的寄存器动作20次 ,

  • 20@r

重复刚刚的寄存器动作50次 ,

  • 50@r

练习素材

<table data-role="table">
    <tbody>
        <tr>
            <td>Afghanistan</td>
            <td>Afghan</td>
        </tr>
        <tr>
            <td>Albania</td>
            <td>Albanian</td>
        </tr>
        <tr>
            <td>Algeria</td>
            <td>Algerian</td>
        </tr>
        <tr>
            <td>Andorra</td>
            <td>Andorran</td>
        </tr>
        <tr>
            <td>Angola</td>
            <td>Angolan</td>
        </tr>
        <tr>
            <td>Antigua and Barbuda</td>
            <td>Antiguan or Barbudan</td>
        </tr>
        <tr>
            <td>Argentina</td>
            <td>Argentine</td>
        </tr>
        <tr>
            <td>Armenia</td>
            <td>Armenian</td>
        </tr>
        <tr>
            <td>Australia</td>
            <td>Australian</td>
        </tr>
        <tr>
            <td>Austria</td>
            <td>Austrian</td>
        </tr>
        <tr>
            <td>Azerbaijan</td>
            <td>Azerbaijani, Azeri</td>
        </tr>
        <tr>
            <td>The Bahamas </td>
            <td>Bahamian</td>
        </tr>
        <tr>
            <td>Bahrain</td>
            <td>Bahraini</td>
        </tr>
        <tr>
            <td>Bangladesh</td>
            <td>Bengali</td>
        </tr>
        <tr>
            <td>Barbados</td>
            <td>Barbadian</td>
        </tr>
        <tr>
            <td>Belarus</td>
            <td>Belarusian</td>
        </tr>
        <tr>
            <td>Belgium</td>
            <td>Belgian</td>
        </tr>
        <tr>
            <td>Belize</td>
            <td>Belizean</td>
        </tr>
        <tr>
            <td>Benin</td>
            <td>Beninese, Beninois</td>
        </tr>
        <tr>
            <td>Bhutan</td>
            <td>Bhutanese</td>
        </tr>
        <tr>
            <td>Bolivia</td>
            <td>Bolivian</td>
        </tr>
        <tr>
            <td>Bosnia and Herzegovina</td>
            <td>Bosnian or Herzegovinian</td>
        </tr>
        <tr>
            <td>Botswana</td>
            <td>Motswana, Botswanan</td>
        </tr>
        <tr>
            <td>Brazil</td>
            <td>Brazilian</td>
        </tr>
        <tr>
            <td>Brunei</td>
            <td>Bruneian</td>
        </tr>
        <tr>
            <td>Bulgaria</td>
            <td>Bulgarian</td>
        </tr>
        <tr>
            <td>Burkina Faso</td>
            <td>Burkinabé</td>
        </tr>
        <tr>
            <td>Burma[2]</td>
            <td>Burmese</td>
        </tr>
        <tr>
            <td>Burundi</td>
            <td>Burundian</td>
        </tr>
        <tr>
            <td>Cabo Verde[3]</td>
            <td>Cabo Verdean</td>
        </tr>
        <tr>
            <td>Cambodia</td>
            <td>Cambodian</td>
        </tr>
        <tr>
            <td>Cameroon</td>
            <td>Cameroonian</td>
        </tr>
        <tr>
            <td>Canada</td>
            <td>Canadian</td>
        </tr>
        <tr>
            <td>Central African Republic</td>
            <td>Central African</td>
        </tr>
        <tr>
            <td>Chad</td>
            <td>Chadian</td>
        </tr>
        <tr>
            <td>Chile</td>
            <td>Chilean</td>
        </tr>
        <tr>
            <td>China, People's Republic of[4]</td>
            <td>Chinese</td>
        </tr>
        <tr>
            <td>Colombia</td>
            <td>Colombian</td>
        </tr>
        <tr>
            <td>Comoros</td>
            <td>Comoran, Comorian</td>
        </tr>
        <tr>
            <td>Congo, Democratic Republic of the</td>
            <td>Congolese</td>
        </tr>
        <tr>
            <td>Congo, Republic of the</td>
            <td>Congolese </td>
        </tr>
        <tr>
            <td>Costa Rica</td>
            <td>Costa Rican</td>
        </tr>
        <tr>
            <td>Côte d'Ivoire[5]</td>
            <td>Ivorian</td>
        </tr>
        <tr>
            <td>Croatia</td>
            <td>Croatian</td>
        </tr>
        <tr>
            <td>Cuba</td>
            <td>Cuban</td>
        </tr>
        <tr>
            <td>Cyprus</td>
            <td>Cypriot</td>
        </tr>
        <tr>
            <td>Czech Republic</td>
            <td>Czech</td>
        </tr>
        <tr>
            <td>Denmark</td>
            <td>Danish</td>
        </tr>
        <tr>
            <td>Djibouti</td>
            <td>Djiboutian</td>
        </tr>
        <tr>
            <td>Dominica</td>
            <td>Dominican</td>
        </tr>
        <tr>
            <td>Dominican Republic</td>
            <td>Dominican</td>
        </tr>
        <tr>
            <td>East Timor[8]</td>
            <td>Timorese</td>
        </tr>
        <tr>
            <td>Ecuador</td>
            <td>Ecuadorian</td>
        </tr>
        <tr>
            <td>Egypt</td>
            <td>Egyptian</td>
        </tr>
        <tr>
            <td>El Salvador</td>
            <td>Salvadoran</td>
        </tr>
        <tr>
            <td>Equatorial Guinea</td>
            <td>Equatorial Guinean, Equatoguinean</td>
        </tr>
        <tr>
            <td>Eritrea</td>
            <td>Eritrean</td>
        </tr>
        <tr>
            <td>Estonia</td>
            <td>Estonian</td>
        </tr>
        <tr>
            <td>Ethiopia</td>
            <td>Ethiopian</td>
        </tr>
        <tr>
            <td>Fiji</td>
            <td>Fijian</td>
        </tr>
        <tr>
            <td>Finland</td>
            <td>Finnish</td>
        </tr>
        <tr>
            <td>France</td>
            <td>French</td>
        </tr>
        <tr>
            <td>Gabon</td>
            <td>Gabonese</td>
        </tr>
        <tr>
            <td>Gambia, The</td>
            <td>Gambian</td>
        </tr>
        <tr>
            <td>Georgia</td>
            <td>Georgian</td>
        </tr>
        <tr>
            <td>Germany</td>
            <td>German</td>
        </tr>
        <tr>
            <td>Ghana</td>
            <td>Ghanaian</td>
        </tr>
        <tr>
            <td>Gibraltar</td>
            <td>Gibraltar</td>
        </tr>
        <tr>
            <td>Greece</td>
            <td>Greek, Hellenic</td>
        </tr>
        <tr>
            <td>Grenada</td>
            <td>Grenadian</td>
        </tr>
        <tr>
            <td>Guatemala</td>
            <td>Guatemalan</td>
        </tr>
        <tr>
            <td>Guinea</td>
            <td>Guinean</td>
        </tr>
        <tr>
            <td>Guinea-Bissau</td>
            <td>Bissau-Guinean</td>
        </tr>
        <tr>
            <td>Guyana</td>
            <td>Guyanese</td>
        </tr>
        <tr>
            <td>Haiti</td>
            <td>Haitian</td>
        </tr>
        <tr>
            <td>Honduras</td>
            <td>Honduran</td>
        </tr>
        <tr>
            <td>Hungary</td>
            <td>Hungarian, Magyar</td>
        </tr>
        <tr>
            <td>Iceland</td>
            <td>Icelandic</td>
        </tr>
        <tr>
            <td>India</td>
            <td>Indian</td>
        </tr>
        <tr>
            <td>Indonesia</td>
            <td>Indonesian</td>
        </tr>
        <tr>
            <td>Iran</td>
            <td>Iranian, Persian</td>
        </tr>
        <tr>
            <td>Iraq</td>
            <td>Iraqi</td>
        </tr>
        <tr>
            <td>Ireland[11]</td>
            <td>Irish</td>
        </tr>
        <tr>
            <td>Israel</td>
            <td>Israeli</td>
        </tr>
        <tr>
            <td>Italy</td>
            <td>Italian</td>
        </tr>
        <tr>
            <td>Ivory Coast[12]</td>
            <td>Ivorian</td>
        </tr>
        <tr>
            <td>Jamaica</td>
            <td>Jamaican</td>
        </tr>
        <tr>
            <td>Japan</td>
            <td>Japanese</td>
        </tr>
        <tr>
            <td>Jordan</td>
            <td>Jordanian</td>
        </tr>
        <tr>
            <td>Kazakhstan</td>
            <td>Kazakhstani, Kazakh</td>
        </tr>
        <tr>
            <td>Kenya</td>
            <td>Kenyan</td>
        </tr>
        <tr>
            <td>Kiribati</td>
            <td>I-Kiribati</td>
        </tr>
        <tr>
            <td>North Korea</td>
            <td>North Korean</td>
        </tr>
        <tr>
            <td>South Korea</td>
            <td>South Korean</td>
        </tr>
        <tr>
            <td>Kuwait</td>
            <td>Kuwaiti</td>
        </tr>
        <tr>
            <td>Kyrgyzstan</td>
            <td>Kyrgyzstani, Kyrgyz, Kirgiz, Kirghiz</td>
        </tr>
        <tr>
            <td>Laos</td>
            <td>Lao, Laotian</td>
        </tr>
        <tr>
            <td>Latvia</td>
            <td>Latvian, Lettish</td>
        </tr>
        <tr>
            <td>Lebanon</td>
            <td>Lebanese</td>
        </tr>
        <tr>
            <td>Lesotho</td>
            <td>Basotho</td>
        </tr>
        <tr>
            <td>Liberia</td>
            <td>Liberian</td>
        </tr>
        <tr>
            <td>Libya</td>
            <td>Libyan</td>
        </tr>
        <tr>
            <td>Liechtenstein</td>
            <td>Liechtensteiner</td>
        </tr>
        <tr>
            <td>Lithuania</td>
            <td>Lithuanian</td>
        </tr>
        <tr>
            <td>Luxembourg</td>
            <td>Luxembourg, Luxembourgish</td>
        </tr>
        <tr>
            <td>Macedonia, Republic of</td>
            <td>Macedonian</td>
        </tr>
        <tr>
            <td>Madagascar</td>
            <td>Malagasy</td>
        </tr>
        <tr>
            <td>Malawi</td>
            <td>Malawian</td>
        </tr>
        <tr>
            <td>Malaysia</td>
            <td>Malaysian</td>
        </tr>
        <tr>
            <td>Maldives</td>
            <td>Maldivian</td>
        </tr>
        <tr>
            <td>Mali</td>
            <td>Malian, Malinese</td>
        </tr>
        <tr>
            <td>Malta</td>
            <td>Maltese</td>
        </tr>
        <tr>
            <td>Marshall Islands</td>
            <td>Marshallese</td>
        </tr>
        <tr>
            <td>Martinique</td>
            <td>Martiniquais, Martinican</td>
        </tr>
        <tr>
            <td>Mauritania</td>
            <td>Mauritanian</td>
        </tr>
        <tr>
            <td>Mauritius</td>
            <td>Mauritian</td>
        </tr>
        <tr>
            <td>Mexico</td>
            <td>Mexican</td>
        </tr>
        <tr>
            <td>Micronesia, Federated States of</td>
            <td>Micronesian</td>
        </tr>
        <tr>
            <td>Moldova</td>
            <td>Moldovan</td>
        </tr>
        <tr>
            <td>Monaco</td>
            <td>Monégasque, Monacan</td>
        </tr>
        <tr>
            <td>Mongolia</td>
            <td>Mongolian</td>
        </tr>
        <tr>
            <td>Montenegro</td>
            <td>Montenegrin</td>
        </tr>
        <tr>
            <td>Morocco</td>
            <td>Moroccan</td>
        </tr>
        <tr>
            <td>Mozambique</td>
            <td>Mozambican</td>
        </tr>
        <tr>
            <td>Namibia</td>
            <td>Namibian</td>
        </tr>
        <tr>
            <td>Nauru</td>
            <td>Nauruan</td>
        </tr>
        <tr>
            <td>Nepal</td>
            <td>Nepali, Nepalese</td>
        </tr>
        <tr>
            <td>Netherlands</td>
            <td>Dutch, Netherlandic</td>
        </tr>
        <tr>
            <td>New Zealand</td>
            <td>New Zealand, NZ, Zelanian</td>
        </tr>
        <tr>
            <td>Nicaragua</td>
            <td>Nicaraguan</td>
        </tr>
        <tr>
            <td>Niger</td>
            <td>Nigerien</td>
        </tr>
        <tr>
            <td>Nigeria</td>
            <td>Nigerian</td>
        </tr>
        <tr>
            <td>Northern Mariana Islands</td>
            <td>Northern Marianan</td>
        </tr>
        <tr>
            <td>Norway</td>
            <td>Norwegian</td>
        </tr>
        <tr>
            <td>Oman</td>
            <td>Omani</td>
        </tr>
        <tr>
            <td>Pakistan</td>
            <td>Pakistani</td>
        </tr>
        <tr>
            <td>Palau</td>
            <td>Palauan</td>
        </tr>
        <tr>
            <td>Palestine</td>
            <td>Palestinian</td>
        </tr>
        <tr>
            <td>Panama</td>
            <td>Panamanian</td>
        </tr>
        <tr>
            <td>Papua New Guinea</td>
            <td>Papua New Guinean, Papuan</td>
        </tr>
        <tr>
            <td>Paraguay</td>
            <td>Paraguayan</td>
        </tr>
        <tr>
            <td>Peru</td>
            <td>Peruvian</td>
        </tr>
        <tr>
            <td>Philippines</td>
            <td>Filipino, Philippine</td>
        </tr>
        <tr>
            <td>Poland</td>
            <td>Polish</td>
        </tr>
        <tr>
            <td>Portugal</td>
            <td>Portuguese</td>
        </tr>
        <tr>
            <td>Puerto Rico</td>
            <td>Puerto Rican</td>
        </tr>
        <tr>
            <td>Qatar</td>
            <td>Qatari</td>
        </tr>
        <tr>
            <td>Romania</td>
            <td>Romanian</td>
        </tr>
        <tr>
            <td>Russia[15]</td>
            <td>Russian</td>
        </tr>
        <tr>
            <td>Rwanda</td>
            <td>Rwandan</td>
        </tr>
        <tr>
            <td>Saint Kitts and Nevis</td>
            <td>Kittitian or Nevisian</td>
        </tr>
        <tr>
            <td>Saint Lucia</td>
            <td>Saint Lucian</td>
        </tr>
        <tr>
            <td>Saint Vincent and the Grenadines</td>
            <td>Saint Vincentian, Vincentian</td>
        </tr>
        <tr>
            <td>Samoa</td>
            <td>Samoan</td>
        </tr>
        <tr>
            <td>San Marino</td>
            <td>Sammarinese</td>
        </tr>
        <tr>
            <td>São Tomé and Príncipe</td>
            <td>São Toméan</td>
        </tr>
        <tr>
            <td>Saudi Arabia</td>
            <td>Saudi, Saudi Arabian</td>
        </tr>
        <tr>
            <td>Senegal</td>
            <td>Senegalese</td>
        </tr>
        <tr>
            <td>Serbia</td>
            <td>Serbian</td>
        </tr>
        <tr>
            <td>Seychelles</td>
            <td>Seychellois</td>
        </tr>
        <tr>
            <td>Sierra Leone</td>
            <td>Sierra Leonean</td>
        </tr>
        <tr>
            <td>Singapore</td>
            <td>Singapore, Singaporean</td>
        </tr>
        <tr>
            <td>Slovakia</td>
            <td>Slovak</td>
        </tr>
        <tr>
            <td>Slovenia</td>
            <td>Slovenian, Slovene</td>
        </tr>
        <tr>
            <td>Solomon Islands</td>
            <td>Solomon Island</td>
        </tr>
        <tr>
            <td>Somalia</td>
            <td>Somali</td>
        </tr>
        <tr>
            <td>South Africa</td>
            <td>South African</td>
        </tr>
        <tr>
            <td>South Sudan</td>
            <td>South Sudanese</td>
        </tr>
        <tr>
            <td>Spain</td>
            <td>Spanish</td>
        </tr>
        <tr>
            <td>Sri Lanka</td>
            <td>Sri Lankan</td>
        </tr>
        <tr>
            <td>Sudan</td>
            <td>Sudanese</td>
        </tr>
        <tr>
            <td>Suriname</td>
            <td>Surinamese</td>
        </tr>
        <tr>
            <td>Swaziland</td>
            <td>Swazi</td>
        </tr>
        <tr>
            <td>Sweden</td>
            <td>Swedish</td>
        </tr>
        <tr>
            <td>Switzerland</td>
            <td>Swiss</td>
        </tr>
        <tr>
            <td>Syria</td>
            <td>Syrian</td>
        </tr>
        <tr>
            <td>Tajikistan</td>
            <td>Tajikistani</td>
        </tr>
        <tr>
            <td>Tanzania</td>
            <td>Tanzanian</td>
        </tr>
        <tr>
            <td>Thailand</td>
            <td>Thai</td>
        </tr>
        <tr>
            <td>Timor-Leste[18]</td>
            <td>Timorese</td>
        </tr>
        <tr>
            <td>Togo</td>
            <td>Togolese</td>
        </tr>
        <tr>
            <td>Tokelau</td>
            <td>Tokelauan</td>
        </tr>
        <tr>
            <td>Tonga</td>
            <td>Tongan</td>
        </tr>
        <tr>
            <td>Trinidad and Tobago</td>
            <td>Trinidadian or Tobagonian</td>
        </tr>
        <tr>
            <td>Tunisia</td>
            <td>Tunisian</td>
        </tr>
        <tr>
            <td>Turkey</td>
            <td>Turkish</td>
        </tr>
        <tr>
            <td>Turkmenistan</td>
            <td>Turkmen</td>
        </tr>
        <tr>
            <td>Tuvalu</td>
            <td>Tuvaluan</td>
        </tr>
        <tr>
            <td>Uganda</td>
            <td>Ugandan</td>
        </tr>
        <tr>
            <td>Ukraine</td>
            <td>Ukrainian</td>
        </tr>
        <tr>
            <td>United Arab Emirates</td>
            <td>Emirati, Emirian, Emiri</td>
        </tr>
        <tr>
            <td>United Kingdom of Great Britain and Northern Ireland </td>
            <td>UK, British </td>
        </tr>
        <tr>
            <td>United States of America</td>
            <td>United States, U.S., American</td>
        </tr>
        <tr>
            <td>Uruguay</td>
            <td>Uruguayan</td>
        </tr>
        <tr>
            <td>Uzbekistan</td>
            <td>Uzbekistani, Uzbek</td>
        </tr>
        <tr>
            <td>Vanuatu</td>
            <td>Ni-Vanuatu, Vanuatuan</td>
        </tr>
        <tr>
            <td>Vatican City State</td>
            <td>Vatican</td>
        </tr>
        <tr>
            <td>Venezuela</td>
            <td>Venezuelan</td>
        </tr>
        <tr>
            <td>Vietnam</td>
            <td>Vietnamese</td>
        </tr>
        <tr>
            <td>Yemen</td>
            <td>Yemeni</td>
        </tr>
        <tr>
            <td>Zambia</td>
            <td>Zambian</td>
        </tr>
        <tr>
            <td>Zimbabwe</td>
            <td>Zimbabwean</td>
        </tr>
    </tbody>
</table>

推荐阅读更多精彩内容