{"id":266934,"date":"2023-03-12T22:12:04","date_gmt":"2023-03-12T14:12:04","guid":{"rendered":"https:\/\/lrxjmw.cn\/vcymldqbgfmx.html"},"modified":"2023-03-12T22:12:04","modified_gmt":"2023-03-12T14:12:04","slug":"vcymldqbgfmx","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/vcymldqbgfmx.html","title":{"rendered":"Vim\u5e38\u7528\u547d\u4ee4\u5927\u5168\uff1a\u516b\u4e2a\u65b9\u9762\u8be6\u89e3\uff01"},"content":{"rendered":"

Linux<\/a>\u7cfb\u7edf<\/a>\u4e0b\u7684Vim\u662f\u4e00\u6b3e\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5b83\u4e0d\u4ec5\u652f\u6301\u57fa\u672c\u7684\u6587\u672c\u7f16\u8f91\u529f\u80fd\uff0c\u8fd8\u6709\u5f88\u591a\u9ad8\u7ea7\u7279\u6027\u3002\u5728\u65e5\u5e38\u5de5\u4f5c\u4e2d\uff0c\u719f\u7ec3\u4f7f\u7528Vim\u53ef\u4ee5\u4f7f\u4f60\u7684\u7f16\u8f91\u6548\u7387\u500d\u589e\u3002\u672c\u6587\u5c06\u4ece\u516b\u4e2a\u65b9\u9762\u5bf9Vim\u5e38\u7528\u547d\u4ee4<\/a>\u8fdb\u884c\u8be6\u7ec6\u4ecb\u7ecdlinux vim\u5e38\u7528\u547d\u4ee4<\/strong>\uff0c\u8ba9\u4f60\u8f7b\u677e\u638c\u63e1\u8fd9\u6b3e\u7f16\u8f91\u5668\u3002<\/p>\n

\u4e00\u3001\u79fb\u52a8\u5149\u6807<\/p>\n

Vim\u4e2d\u79fb\u52a8\u5149\u6807\u662f\u6700\u57fa\u672c\u7684\u64cd\u4f5c\u4e4b\u4e00\u3002\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\u5feb\u901f\u79fb\u52a8\uff1a<\/p>\n

h\uff1a\u5de6\u79fb\u4e00\u4e2a\u5b57\u7b26<\/p>\n

j\uff1a\u4e0b\u79fb\u4e00\u884c<\/p>\n

k\uff1a\u4e0a\u79fb\u4e00\u884c<\/p>\n

l\uff1a\u53f3\u79fb\u4e00\u4e2a\u5b57\u7b26<\/p>\n

0\uff1a\u79fb\u5230\u884c\u9996<\/p>\n

$\uff1a\u79fb\u5230\u884c\u5c3e<\/p>\n

gg\uff1a\u79fb\u5230\u6587\u4ef6\u5f00\u5934<\/p>\n

G\uff1a\u79fb\u5230\u6587\u4ef6\u7ed3\u5c3e<\/p>\n

\u4e8c\u3001\u63d2\u5165\u548c\u66ff\u6362\u6587\u672c<\/p>\n

\u5728Vim\u4e2d\u63d2\u5165\u548c\u66ff\u6362\u6587\u672c\u4e5f\u662f\u975e\u5e38\u7b80\u5355\u7684\u64cd\u4f5c\u3002\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\uff1a<\/p>\n

i\uff1a\u5728\u5f53\u524d\u5149\u6807\u4f4d\u7f6e\u63d2\u5165\u6587\u672c<\/p>\n

a\uff1a\u5728\u5f53\u524d\u5149\u6807\u4f4d\u7f6e\u540e\u63d2\u5165\u6587\u672c<\/p>\n

o\uff1a\u5728\u5f53\u524d\u884c\u4e0b\u9762\u63d2\u5165\u65b0\u884c\u5e76\u8fdb\u5165\u63d2\u5165\u6a21\u5f0f<\/p>\n

s\uff1a\u5220\u9664\u5f53\u524d\u5b57\u7b26\u5e76\u8fdb\u5165\u63d2\u5165\u6a21\u5f0f<\/p>\n

linux\u4e2dvim\u547d\u4ee4_linux vim\u5e38\u7528\u547d\u4ee4_linux vim \u547d\u4ee4<\/p>\n

r\uff1a\u66ff\u6362\u5f53\u524d\u5b57\u7b26<\/p>\n

\u4e09\u3001\u590d\u5236\u548c\u7c98\u8d34\u6587\u672c<\/p>\n

\u590d\u5236\u548c\u7c98\u8d34\u6587\u672c\u4e5f\u662f\u65e5\u5e38\u7f16\u8f91\u4e2d\u7ecf\u5e38\u4f7f\u7528\u7684\u64cd\u4f5c\u3002\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\uff1a<\/p>\n

yy\uff1a\u590d\u5236\u5f53\u524d\u884c<\/p>\n

p\uff1a\u5c06\u590d\u5236\u7684\u5185\u5bb9\u7c98\u8d34\u5230\u5149\u6807\u6240\u5728\u884c\u540e\u9762<\/p>\n

P\uff1a\u5c06\u590d\u5236\u7684\u5185\u5bb9\u7c98\u8d34\u5230\u5149\u6807\u6240\u5728\u884c\u524d\u9762<\/p>\n

\u56db\u3001\u64a4\u9500\u548c\u91cd\u505a\u64cd\u4f5c<\/p>\n

\u5728\u7f16\u8f91\u4e2d\uff0c\u4e0d\u53ef\u907f\u514d\u5730\u4f1a\u51fa\u73b0\u8bef\u64cd\u4f5c\u6216\u8005\u9700\u8981\u56de\u9000\u5230\u4e4b\u524d\u7684\u7248\u672c\u3002\u8fd9\u65f6\u5019\u5c31\u9700\u8981\u7528\u5230\u64a4\u9500\u548c\u91cd\u505a\u64cd\u4f5c\u4e86\u3002\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\uff1a<\/p>\n

u\uff1a\u64a4\u9500\u4e0a\u4e00\u6b21\u64cd\u4f5c<\/p>\n

Ctrl+r\uff1a\u91cd\u505a\u4e0a\u4e00\u6b21\u88ab\u64a4\u9500\u7684\u64cd\u4f5c<\/p>\n

\u4e94\u3001\u641c\u7d22\u548c\u66ff\u6362<\/p>\n

\u5728\u5927\u578b\u6587\u4ef6\u4e2d\u67e5\u627e\u67d0\u4e2a\u5173\u952e\u8bcd\u6216\u8005\u6279\u91cf\u66ff\u6362\u67d0\u4e2a\u5b57\u7b26\u4e32\u4e5f\u662f\u5e38\u89c1\u9700\u6c42\u3002\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\uff1a<\/p>\n

\/\u5173\u952e\u8bcd\uff1a\u5411\u4e0b\u67e5\u627e\u5173\u952e\u8bcd<\/p>\n

?\u5173\u952e\u8bcd\uff1a\u5411\u4e0a\u67e5\u627e\u5173\u952e\u8bcd<\/p>\n

:%s\/\u539f\u5b57\u7b26\u4e32\/\u76ee\u6807\u5b57\u7b26\u4e32\/gc \uff1a\u6279\u91cf\u66ff\u6362\u539f\u5b57\u7b26\u4e32\u4e3a\u76ee\u6807\u5b57\u7b26\u4e32linux vim\u5e38\u7528\u547d\u4ee4<\/strong>\uff0c\u5e76\u63d0\u793a\u786e\u8ba4\u662f\u5426\u66ff\u6362<\/p>\n

\u516d\u3001\u5206\u5c4f\u548c\u591a\u7a97\u53e3\u6a21\u5f0f<\/p>\n

Vim\u652f\u6301\u5206\u5c4f\u548c\u591a\u7a97\u53e3\u6a21\u5f0f\uff0c\u53ef\u4ee5\u540c\u65f6\u6253\u5f00\u591a\u4e2a\u6587\u4ef6\u8fdb\u884c\u7f16\u8f91\u3002\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\uff1a<\/p>\n

:sp filename \uff1a\u6c34\u5e73\u5206\u5c4f\u5e76\u6253\u5f00\u6307\u5b9a\u6587\u4ef6<\/p>\n

:vsp filename \uff1a\u5782\u76f4\u5206\u5c4f\u5e76\u6253\u5f00\u6307\u5b9a\u6587\u4ef6<\/p>\n

Ctrl+w w \uff1a\u5728\u7a97\u53e3\u4e4b\u95f4\u5207\u6362<\/p>\n

Ctrl+w h\/j\/k\/l\uff1a\u5207\u6362\u5230\u5de6\/\u4e0b\/\u4e0a\/\u53f3\u8fb9\u7684\u7a97\u53e3<\/p>\n

Ctrl+w+\/-\uff1a\u589e\u52a0\/\u51cf\u5c0f\u7a97\u53e3\u5927\u5c0f<\/p>\n

\u4e03\u3001\u5b8f\u5f55\u5236\u529f\u80fd<\/p>\n

Vim\u8fd8\u652f\u6301\u5b8f\u5f55\u5236\u529f\u80fd\uff0c\u53ef\u4ee5\u8bb0\u5f55\u4f60\u8f93\u5165\u7684\u4e00\u7cfb\u5217\u547d\u4ee4\u5982\u4f55\u5b89\u88c5LINUX\uff0c\u5e76\u628a\u5b83\u4eec\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u5b8f\u3002\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\uff1a<\/p>\n

q+\u5b57\u6bcd\uff1a\u5f00\u59cb\u5f55\u5236\u5b8f\u5e76\u6307\u5b9a\u4fdd\u5b58\u5230\u54ea\u4e2a\u5b57\u6bcd<\/p>\n

q\uff1a\u505c\u6b62\u5f55\u5236\u5b8f<\/p>\n

@+\u5b57\u6bcd\uff1a\u6267\u884c\u6307\u5b9a\u5b57\u6bcd\u5bf9\u5e94\u7684\u5b8f<\/p>\n

\u516b\u3001\u81ea\u5b9a\u4e49\u914d\u7f6e<\/p>\n

\u6700\u540e\u4e00\u4e2a\u65b9\u9762\u662f\u81ea\u5b9a\u4e49\u914d\u7f6e\uff0c\u8fd9\u4e5f\u662fVim\u5982\u6b64\u5f3a\u5927\u800c\u53c8\u7075\u6d3b\u7684\u539f\u56e0\u4e4b\u4e00\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u559c\u597d\u8bbe\u7f6e\u5404\u79cd\u914d\u7f6e\u9879\uff0c\u5982\u8bbe\u7f6e\u4ee3\u7801\u9ad8\u4eae\u3001\u663e\u793a\u884c\u53f7\u7b49\u7b49\u3002\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\uff1a<\/p>\n

:set nu\/nonu \uff1a\u663e\u793a\/\u9690\u85cf\u884c\u53f7<\/p>\n

:set hlsearch\/nohlsearch \uff1a\u5f00\u542f\/\u5173\u95ed\u641c\u7d22\u9ad8\u4eae<\/p>\n

:syntax on\/off \uff1a\u5f00\u542f\/\u5173\u95ed\u8bed\u6cd5\u9ad8\u4eae<\/p>\n

\u603b\u7ed3\uff1a<\/p>\n

\u4ee5\u4e0a\u5c31\u662fLinux Vim\u5e38\u7528\u547d\u4ee4\u7684\u8be6\u7ec6\u4ecb\u7ecd\u3002\u719f\u7ec3\u638c\u63e1\u8fd9\u4e9b\u547d\u4ee4\u4e0d\u4f46\u80fd\u591f\u63d0\u9ad8\u6211\u4eec\u65e5\u5e38\u5de5\u4f5c\u6548\u7387\uff0c\u800c\u4e14\u80fd\u591f\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u7406\u89e3\u548c\u638c\u63e1Linux\u7cfb\u7edf\u4e0b\u7684\u6587\u672c\u7f16\u8f91\u5668\u3002\u5f53\u7136\uff0c\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u8fd8\u9700\u8981\u4e0d\u65ad\u5730\u7ec3\u4e60\u548c\u63a2\u7d22redhat linux\u4e0b\u8f7d\uff0c\u624d\u80fd\u771f\u6b63\u6210\u4e3a\u4e00\u4e2aVim\u9ad8\u624b\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

Linux\u7cfb\u7edf\u4e0b\u7684Vim\u662f\u4e00\u6b3e\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5b83\u4e0d\u4ec5\u652f\u6301\u57fa\u672c\u7684\u6587\u672c\u7f16\u8f91\u529f\u80fd\uff0c\u8fd8\u6709\u5f88\u591a\u9ad8\u7ea7\u7279\u6027\u3002\u672c\u6587\u5c06\u4ece\u516b\u4e2a\u65b9\u9762\u5bf9Vim\u5e38\u7528\u547d\u4ee4\u8fdb\u884c\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u8ba9\u4f60\u8f7b\u677e\u638c\u63e1\u8fd9\u6b3e\u7f16\u8f91\u5668\u3002\u5728\u5927\u578b\u6587\u4ef6\u4e2d\u67e5\u627e\u67d0\u4e2a\u5173\u952e\u8bcd\u6216\u8005\u6279\u91cf\u66ff\u6362\u67d0\u4e2a\u5b57\u7b26\u4e32\u4e5f\u662f\u5e38\u89c1\u9700\u6c42\u3002Vim\u8fd8\u652f\u6301\u5b8f\u5f55\u5236\u529f\u80fd\uff0c\u53ef\u4ee5\u8bb0\u5f55\u4f60\u8f93\u5165\u7684\u4e00\u7cfb\u5217\u547d\u4ee4\uff0c\u5e76\u628a\u5b83\u4eec\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u5b8f\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u559c\u597d\u8bbe\u7f6e\u5404\u79cd\u914d\u7f6e\u9879\uff0c\u5982\u8bbe\u7f6e\u4ee3\u7801\u9ad8\u4eae\u3001\u663e\u793a\u884c\u53f7\u7b49\u7b49\u3002Vim\u5e38\u7528\u547d\u4ee4\u7684\u8be6\u7ec6\u4ecb\u7ecd\u3002<\/p>\n","protected":false},"author":1,"featured_media":266935,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-266934","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/266934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=266934"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/266934\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/266935"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=266934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=266934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=266934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}