{"id":61093,"date":"2025-04-29T08:58:58","date_gmt":"2025-04-29T00:58:58","guid":{"rendered":"https:\/\/fwq.ai\/blog\/61093\/"},"modified":"2025-04-29T08:58:58","modified_gmt":"2025-04-29T00:58:58","slug":"linux-vim%e4%b8%adm%e6%98%af%e4%bb%80%e4%b9%88%e6%84%8f%e6%80%9d-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/61093\/","title":{"rendered":"linux vim\u4e2dm\u662f\u4ec0\u4e48\u610f\u601d"},"content":{"rendered":"<blockquote><p>\n  linux\u7684vim\u7f16\u8f91\u5668\u4e2dm\u662f\u4e00\u79cd\u547d\u4ee4\u6a21\u5f0f\u4e0b\u7684\u52a8\u4f5c\u547d\u4ee4\uff0c\u7528\u4e8e\u5728\u5f53\u524d\u884c\u8bbe\u7f6e\u6807\u8bb0\uff0c\u5b83\u7684\u4f5c\u7528\u662f\u7528\u6765\u6807\u8bb0\u6587\u672c\u4e2d\u7684\u67d0\u4e2a\u4f4d\u7f6e\uff0c\u4ee5\u4fbf\u5728\u4e4b\u540e\u80fd\u591f\u5feb\u901f\u8df3\u8f6c\u5230\u8be5\u4f4d\u7f6e\uff0c\u4f7f\u7528m\u547d\u4ee4\u8bbe\u7f6e\u6807\u8bb0\u7684\u8bed\u6cd5\u4e3a\u201cm{a-za-z}\u201d\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202306\/29\/2023062910164578347.jpg\" class=\"aligncenter\" title=\"linux vim\u4e2dm\u662f\u4ec0\u4e48\u610f\u601d\u63d2\u56fe\" alt=\"linux vim\u4e2dm\u662f\u4ec0\u4e48\u610f\u601d\u63d2\u56fe\" \/><\/p>\n<p>\u672c\u6559\u7a0b\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux5.18.14\u7cfb\u7edf\u3001Dell G3\u7535\u8111\u3002<\/p>\n<p><strong>\u5728Linux\u7684Vim\u7f16\u8f91\u5668\u4e2d\uff0cm&nbsp;\u662f\u4e00\u79cd\u547d\u4ee4\u6a21\u5f0f\u4e0b\u7684\u52a8\u4f5c\u547d\u4ee4\uff0c\u7528\u4e8e\u5728\u5f53\u524d\u884c\u8bbe\u7f6e\u6807\u8bb0\u3002\u5b83\u7684\u4f5c\u7528\u662f\u7528\u6765\u6807\u8bb0\u6587\u672c\u4e2d\u7684\u67d0\u4e2a\u4f4d\u7f6e\uff0c\u4ee5\u4fbf\u5728\u4e4b\u540e\u80fd\u591f\u5feb\u901f\u8df3\u8f6c\u5230\u8be5\u4f4d\u7f6e\u3002<\/strong><\/p>\n<p>\u4f7f\u7528&nbsp;m&nbsp;\u547d\u4ee4\u8bbe\u7f6e\u6807\u8bb0\u7684\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre>m{a-zA-Z}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d\uff0c{a-zA-Z}&nbsp;\u662f\u4e00\u4e2a\u5b57\u6bcd\uff0c\u8868\u793a\u7ed9\u5b9a\u7684\u6807\u8bb0\u540d\u79f0\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u4efb\u610f\u5b57\u6bcd\u4f5c\u4e3a\u6807\u8bb0\u540d\u79f0\u3002<\/p>\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5047\u8bbe\u4f60\u6b63\u5728\u7f16\u8f91\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u5728\u67d0\u4e2a\u7279\u5b9a\u884c\u4e0a\u6309\u4e0b&nbsp;ma&nbsp;\u547d\u4ee4\uff0c\u5c06\u4f1a\u5728\u90a3\u4e00\u884c\u8bbe\u7f6e\u4e00\u4e2a\u540d\u4e3a&nbsp;a&nbsp;\u7684\u6807\u8bb0\u3002\u4e4b\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u547d\u4ee4\u8df3\u8f6c\u5230\u8fd9\u4e2a\u6807\u8bb0\u7684\u4f4d\u7f6e\u3002<\/p>\n<p>\u5e38\u89c1\u7684\u4e0e\u6807\u8bb0\u76f8\u5173\u7684\u547d\u4ee4\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\n<p>&#8216;a\uff1a\u5c06\u5149\u6807\u79fb\u52a8\u5230\u6807\u8bb0&nbsp;a&nbsp;\u8bbe\u7f6e\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/li>\n<li>\n<p>`a\uff1a\u5c06\u5149\u6807\u7cbe\u786e\u5b9a\u4f4d\u5230\u6807\u8bb0&nbsp;a&nbsp;\u8bbe\u5b9a\u7684\u884c\u9996\u7684\u5b57\u7b26\u5904\u3002<\/p>\n<\/li>\n<li>\n<p>:marks\uff1a\u663e\u793a\u6587\u672c\u4e2d\u8bbe\u7f6e\u7684\u6240\u6709\u6807\u8bb0\u3002<\/p>\n<\/li>\n<li>\n<p>:delmarks a\uff1a\u5220\u9664\u6807\u8bb0&nbsp;a\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u6807\u8bb0\u5728\u7f16\u8f91\u5927\u578b\u6587\u4ef6\u65f6\u975e\u5e38\u6709\u7528\uff0c\u4f60\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u4f4d\u7f6e\u8bbe\u7f6e\u591a\u4e2a\u6807\u8bb0\uff0c\u65b9\u4fbf\u5730\u5728\u6587\u4ef6\u4e2d\u8fdb\u884c\u5bfc\u822a\u548c\u8df3\u8f6c\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u5728\u4ee3\u7801\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u6807\u8bb0\u4ee5\u5feb\u901f\u8df3\u8f6c\u5230\u67d0\u4e2a\u91cd\u8981\u7684\u51fd\u6570\u5b9a\u4e49\u6216\u6ce8\u91ca\u5757\u3002<\/p>\n<p>\u603b\u7ed3\u8d77\u6765\uff0cm&nbsp;\u547d\u4ee4\u7528\u4e8e\u5728Vim\u4e2d\u8bbe\u7f6e\u6807\u8bb0\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u7f16\u8f91\u8fc7\u7a0b\u4e2d\u5feb\u901f\u5bfc\u822a\u5230\u6587\u672c\u4e2d\u7684\u7279\u5b9a\u4f4d\u7f6e\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f vim\u4e2dm\u662f\u4ec0\u4e48\u610f\u601d\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8FDCServers\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux\u7684vim\u7f16\u8f91\u5668\u4e2dm\u662f\u4e00\u79cd\u547d\u4ee4\u6a21\u5f0f\u4e0b\u7684\u52a8\u4f5c\u547d\u4ee4\uff0c\u7528\u4e8e\u5728\u5f53\u524d\u884c\u8bbe\u7f6e\u6807\u8bb0\uff0c\u5b83\u7684\u4f5c\u7528\u662f\u7528\u6765\u6807\u8bb0\u6587\u672c\u4e2d\u7684\u67d0\u4e2a\u4f4d\u7f6e\uff0c\u4ee5\u4fbf\u5728\u4e4b\u540e\u80fd\u591f\u5feb\u901f\u8df3\u8f6c\u5230\u8be5\u4f4d\u7f6e\uff0c\u4f7f\u7528m\u547d\u4ee4\u8bbe\u7f6e\u6807\u8bb0\u7684\u8bed\u6cd5\u4e3a\u201cm{a-za-z}\u201d\u3002 \u672c\u6559\u7a0b\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux5.18.14\u7cfb\u7edf\u3001Dell G3\u7535\u8111\u3002 \u5728Linux\u7684Vim\u7f16\u8f91\u5668\u4e2d\uff0cm&nbsp;\u662f\u4e00\u79cd\u547d\u4ee4\u6a21\u5f0f\u4e0b\u7684\u52a8\u4f5c\u547d\u4ee4\uff0c\u7528\u4e8e\u5728\u5f53\u524d\u884c\u8bbe\u7f6e\u6807\u8bb0\u3002\u5b83\u7684\u4f5c\u7528\u662f\u7528\u6765\u6807\u8bb0\u6587\u672c\u4e2d\u7684\u67d0\u4e2a\u4f4d\u7f6e\uff0c\u4ee5\u4fbf\u5728\u4e4b\u540e\u80fd\u591f\u5feb\u901f\u8df3\u8f6c\u5230\u8be5\u4f4d\u7f6e\u3002 \u4f7f\u7528&nbsp;m&nbsp;\u547d\u4ee4\u8bbe\u7f6e\u6807\u8bb0\u7684\u8bed\u6cd5\u5982\u4e0b\uff1a m{a-zA-Z} \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d\uff0c{a-zA-Z}&nbsp;\u662f\u4e00\u4e2a\u5b57\u6bcd\uff0c\u8868\u793a\u7ed9\u5b9a\u7684\u6807\u8bb0\u540d\u79f0\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u4efb\u610f\u5b57\u6bcd\u4f5c\u4e3a\u6807\u8bb0\u540d\u79f0\u3002 \u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5047\u8bbe\u4f60\u6b63\u5728\u7f16\u8f91\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u5728\u67d0\u4e2a\u7279\u5b9a\u884c\u4e0a\u6309\u4e0b&nbsp;ma&nbsp;\u547d\u4ee4\uff0c\u5c06\u4f1a\u5728\u90a3\u4e00\u884c\u8bbe\u7f6e\u4e00\u4e2a\u540d\u4e3a&nbsp;a&nbsp;\u7684\u6807\u8bb0\u3002\u4e4b\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u547d\u4ee4\u8df3\u8f6c\u5230\u8fd9\u4e2a\u6807\u8bb0\u7684\u4f4d\u7f6e\u3002 \u5e38\u89c1\u7684\u4e0e\u6807\u8bb0\u76f8\u5173\u7684\u547d\u4ee4\u5305\u62ec\uff1a &#8216;a\uff1a\u5c06\u5149\u6807\u79fb\u52a8\u5230\u6807\u8bb0&nbsp;a&nbsp;\u8bbe\u7f6e\u7684\u4f4d\u7f6e\u3002 `a\uff1a\u5c06\u5149\u6807\u7cbe\u786e\u5b9a\u4f4d\u5230\u6807\u8bb0&nbsp;a&nbsp;\u8bbe\u5b9a\u7684\u884c\u9996\u7684\u5b57\u7b26\u5904\u3002 :marks\uff1a\u663e\u793a\u6587\u672c\u4e2d\u8bbe\u7f6e\u7684\u6240\u6709\u6807\u8bb0\u3002 :delmarks a\uff1a\u5220\u9664\u6807\u8bb0&nbsp;a\u3002 \u6807\u8bb0\u5728\u7f16\u8f91\u5927\u578b\u6587\u4ef6\u65f6\u975e\u5e38\u6709\u7528\uff0c\u4f60\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u4f4d\u7f6e\u8bbe\u7f6e\u591a\u4e2a\u6807\u8bb0\uff0c\u65b9\u4fbf\u5730\u5728\u6587\u4ef6\u4e2d\u8fdb\u884c\u5bfc\u822a\u548c\u8df3\u8f6c\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u5728\u4ee3\u7801\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u6807\u8bb0\u4ee5\u5feb\u901f\u8df3\u8f6c\u5230\u67d0\u4e2a\u91cd\u8981\u7684\u51fd\u6570\u5b9a\u4e49\u6216\u6ce8\u91ca\u5757\u3002 \u603b\u7ed3\u8d77\u6765\uff0cm&nbsp;\u547d\u4ee4\u7528\u4e8e\u5728Vim\u4e2d\u8bbe\u7f6e\u6807\u8bb0\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u7f16\u8f91\u8fc7\u7a0b\u4e2d\u5feb\u901f\u5bfc\u822a\u5230\u6587\u672c\u4e2d\u7684\u7279\u5b9a\u4f4d\u7f6e\u3002 \u4ee5\u4e0a\u5c31\u662f vim\u4e2dm\u662f\u4ec0\u4e48\u610f\u601d\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8FDCServers\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-61093","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/61093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=61093"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/61093\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=61093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=61093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=61093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}