{"id":23431,"date":"2025-04-19T07:47:40","date_gmt":"2025-04-18T23:47:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/23431.html"},"modified":"2025-04-19T07:47:40","modified_gmt":"2025-04-18T23:47:40","slug":"linux-vim%e6%95%99%e7%a8%8b%ef%bc%88%e5%8d%81%e4%ba%8c%ef%bc%89%ef%bc%9a%e8%af%ad%e6%b3%95%e9%ab%98%e4%ba%ae%e4%b8%8e%e4%bb%a3%e7%a0%81%e6%8a%98%e5%8f%a0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/23431.html","title":{"rendered":"Linux Vim\u6559\u7a0b\uff08\u5341\u4e8c\uff09\uff1a\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"1.%20%E8%AF%AD%E6%B3%95%E9%AB%98%E4%BA%AE-toc\" style=\"margin-left:0px\">1. \u8bed\u6cd5\u9ad8\u4eae<\/p>\n<p id=\"1.1%20%E5%90%AF%E7%94%A8%E8%AF%AD%E6%B3%95%E9%AB%98%E4%BA%AE-toc\" style=\"margin-left:40px\">1.1 \u542f\u7528\u8bed\u6cd5\u9ad8\u4eae<\/p>\n<p id=\"1.2%20%E8%AE%BE%E7%BD%AE%E9%85%8D%E8%89%B2%E6%96%B9%E6%A1%88-toc\" style=\"margin-left:40px\">1.2 \u8bbe\u7f6e\u914d\u8272\u65b9\u6848<\/p>\n<p id=\"1.3%20%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E6%B3%95%E9%AB%98%E4%BA%AE-toc\" style=\"margin-left:40px\">1.3 \u81ea\u5b9a\u4e49\u8bed\u6cd5\u9ad8\u4eae<\/p>\n<p id=\"2.%20%E4%BB%A3%E7%A0%81%E6%8A%98%E5%8F%A0-toc\" style=\"margin-left:0px\">2. \u4ee3\u7801\u6298\u53e0<\/p>\n<p id=\"2.1%20%E5%90%AF%E7%94%A8%E4%BB%A3%E7%A0%81%E6%8A%98%E5%8F%A0-toc\" style=\"margin-left:40px\">2.1 \u542f\u7528\u4ee3\u7801\u6298\u53e0<\/p>\n<p id=\"2.2%20%E8%AE%BE%E7%BD%AE%E6%8A%98%E5%8F%A0%E6%96%B9%E6%B3%95-toc\" style=\"margin-left:40px\">2.2 \u8bbe\u7f6e\u6298\u53e0\u65b9\u6cd5<\/p>\n<p id=\"2.3%20%E6%89%8B%E5%8A%A8%E6%8A%98%E5%8F%A0-toc\" style=\"margin-left:40px\">2.3 \u624b\u52a8\u6298\u53e0<\/p>\n<p id=\"2.4%20%E5%9F%BA%E4%BA%8E%E7%BC%A9%E8%BF%9B%E7%9A%84%E6%8A%98%E5%8F%A0-toc\" style=\"margin-left:40px\">2.4 \u57fa\u4e8e\u7f29\u8fdb\u7684\u6298\u53e0<\/p>\n<p id=\"2.5%20%E5%9F%BA%E4%BA%8E%E8%AF%AD%E6%B3%95%E7%9A%84%E6%8A%98%E5%8F%A0-toc\" style=\"margin-left:40px\">2.5 \u57fa\u4e8e\u8bed\u6cd5\u7684\u6298\u53e0<\/p>\n<p id=\"3.%20%E6%A1%88%E4%BE%8B-toc\" style=\"margin-left:0px\">3. \u6848\u4f8b<\/p>\n<p id=\"3.1%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-toc\" style=\"margin-left:40px\">3.1 \u914d\u7f6e\u6587\u4ef6<\/p>\n<p id=\"3.2%20%E7%BC%96%E8%BE%91Python%E6%96%87%E4%BB%B6-toc\" style=\"margin-left:40px\">3.2 \u7f16\u8f91Python\u6587\u4ef6<\/p>\n<p id=\"3.3%20%E4%BD%BF%E7%94%A8%E6%8A%98%E5%8F%A0%E5%8A%9F%E8%83%BD-toc\" style=\"margin-left:40px\">3.3 \u4f7f\u7528\u6298\u53e0\u529f\u80fd<\/p>\n<p id=\"4.%20%E9%AB%98%E7%BA%A7%E4%BD%BF%E7%94%A8%E6%8A%80%E5%B7%A7-toc\" style=\"margin-left:0px\">4. \u9ad8\u7ea7\u4f7f\u7528\u6280\u5de7<\/p>\n<p id=\"4.1%20%E8%87%AA%E5%8A%A8%E5%91%BD%E4%BB%A4-toc\" style=\"margin-left:40px\">4.1 \u81ea\u52a8\u547d\u4ee4<\/p>\n<p id=\"4.2%20%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8A%98%E5%8F%A0%E6%96%87%E6%9C%AC-toc\" style=\"margin-left:40px\">4.2 \u81ea\u5b9a\u4e49\u6298\u53e0\u6587\u672c<\/p>\n<p id=\"4.3%20%E5%BF%AB%E9%80%9F%E6%8A%98%E5%8F%A0%E4%B8%8E%E5%B1%95%E5%BC%80-toc\" style=\"margin-left:40px\">4.3 \u5feb\u901f\u6298\u53e0\u4e0e\u5c55\u5f00<\/p>\n<p id=\"5.%20%E5%AE%9E%E7%94%A8%E6%8F%92%E4%BB%B6-toc\" style=\"margin-left:0px\">5. \u5b9e\u7528\u63d2\u4ef6<\/p>\n<p id=\"5.1%20vim-polyglot-toc\" style=\"margin-left:40px\">5.1 vim-polyglot<\/p>\n<p id=\"5.2%20NERDTree-toc\" style=\"margin-left:40px\">5.2 NERDTree<\/p>\n<p id=\"5.3%20vim-fugitive-toc\" style=\"margin-left:40px\">5.3 vim-fugitive<\/p>\n<p id=\"6.%20%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:0px\">6. \u603b\u7ed3<\/p>\n<hr id=\"hr-toc\" \/>\n<p>\u5728\u6587\u672c\u7f16\u8f91\u5668\u7684\u4f7f\u7528\u4e2d&#xff0c;\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u6298\u53e0\u662f\u4e24\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u529f\u80fd&#xff0c;\u5b83\u4eec\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u5347\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7f16\u8f91\u6548\u7387\u3002Vim\u4f5c\u4e3a\u4e00\u6b3e\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668&#xff0c;\u81ea\u7136\u4e5f\u652f\u6301\u8fd9\u4e9b\u529f\u80fd\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Vim\u4e2d\u542f\u7528\u548c\u914d\u7f6e\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0&#xff0c;\u5e2e\u52a9\u4f60\u66f4\u9ad8\u6548\u5730\u7f16\u5199\u548c\u7ba1\u7406\u4ee3\u7801\u3002<\/p>\n<h2 id=\"1.%20%E8%AF%AD%E6%B3%95%E9%AB%98%E4%BA%AE\" style=\"background-color:transparent\">1. \u8bed\u6cd5\u9ad8\u4eae<\/h2>\n<p>\u8bed\u6cd5\u9ad8\u4eae\u662f\u6307\u5728\u6587\u672c\u7f16\u8f91\u5668\u4e2d&#xff0c;\u4ee5\u4e0d\u540c\u7684\u989c\u8272\u663e\u793a\u4ee3\u7801\u7684\u4e0d\u540c\u90e8\u5206&#xff0c;\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002Vim\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684\u8bed\u6cd5\u9ad8\u4eae&#xff0c;\u5e76\u4e14\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8fdb\u884c\u81ea\u5b9a\u4e49\u914d\u7f6e\u3002<\/p>\n<h3 id=\"1.1%20%E5%90%AF%E7%94%A8%E8%AF%AD%E6%B3%95%E9%AB%98%E4%BA%AE\" style=\"background-color:transparent\">1.1 \u542f\u7528\u8bed\u6cd5\u9ad8\u4eae<\/h3>\n<p>\u5728Vim\u4e2d&#xff0c;\u542f\u7528\u8bed\u6cd5\u9ad8\u4eae\u975e\u5e38\u7b80\u5355&#xff0c;\u53ea\u9700\u5728.vimrc\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>syntax on<\/p>\n<p>\u5982\u679c\u4f60\u5728\u7f16\u8f91\u8fc7\u7a0b\u4e2d\u5e0c\u671b\u4e34\u65f6\u542f\u7528\u6216\u5173\u95ed\u8bed\u6cd5\u9ad8\u4eae&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>:syntax on   &#034; \u542f\u7528\u8bed\u6cd5\u9ad8\u4eae<br \/>\n:syntax off  &#034; \u5173\u95ed\u8bed\u6cd5\u9ad8\u4eae<\/p>\n<h3 id=\"1.2%20%E8%AE%BE%E7%BD%AE%E9%85%8D%E8%89%B2%E6%96%B9%E6%A1%88\" style=\"background-color:transparent\">1.2 \u8bbe\u7f6e\u914d\u8272\u65b9\u6848<\/h3>\n<p>Vim\u63d0\u4f9b\u4e86\u591a\u79cd\u914d\u8272\u65b9\u6848&#xff0c;\u53ef\u4ee5\u6839\u636e\u4e2a\u4eba\u559c\u597d\u9009\u62e9\u4e0d\u540c\u7684\u914d\u8272\u65b9\u6848\u3002\u5728.vimrc\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\u4ee5\u8bbe\u7f6e\u914d\u8272\u65b9\u6848&#xff1a;<\/p>\n<p>colorscheme desert<\/p>\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u6240\u6709\u53ef\u7528\u7684\u914d\u8272\u65b9\u6848&#xff1a;<\/p>\n<p>:colorscheme &lt;Tab&gt;<\/p>\n<p>\u6309Tab\u952e\u53ef\u4ee5\u5faa\u73af\u663e\u793a\u6240\u6709\u53ef\u7528\u7684\u914d\u8272\u65b9\u6848&#xff0c;\u9009\u62e9\u4e00\u4e2a\u4f60\u559c\u6b22\u7684\u5373\u53ef\u3002<\/p>\n<h3 id=\"1.3%20%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E6%B3%95%E9%AB%98%E4%BA%AE\" style=\"background-color:transparent\">1.3 \u81ea\u5b9a\u4e49\u8bed\u6cd5\u9ad8\u4eae<\/h3>\n<p>\u9664\u4e86\u4f7f\u7528\u5185\u7f6e\u7684\u8bed\u6cd5\u9ad8\u4eae\u65b9\u6848\u5916&#xff0c;Vim\u8fd8\u5141\u8bb8\u7528\u6237\u81ea\u5b9a\u4e49\u8bed\u6cd5\u9ad8\u4eae\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u81ea\u5b9a\u4e49C\u8bed\u8a00\u8bed\u6cd5\u9ad8\u4eae\u7684\u793a\u4f8b&#xff1a;<\/p>\n<p>syntax clear<br \/>\nsyntax keyword cType int float double char<br \/>\nsyntax keyword cStatement if else while for return<br \/>\nhighlight cType guifg&#061;#ff0000 ctermfg&#061;red<br \/>\nhighlight cStatement guifg&#061;#0000ff ctermfg&#061;blue<\/p>\n<p>\u5c06\u4e0a\u8ff0\u4ee3\u7801\u6dfb\u52a0\u5230.vimrc\u6587\u4ef6\u4e2d&#xff0c;\u5373\u53ef\u81ea\u5b9a\u4e49C\u8bed\u8a00\u7684\u8bed\u6cd5\u9ad8\u4eae\u3002<\/p>\n<h2 id=\"2.%20%E4%BB%A3%E7%A0%81%E6%8A%98%E5%8F%A0\" style=\"background-color:transparent\">2. \u4ee3\u7801\u6298\u53e0<\/h2>\n<p>\u4ee3\u7801\u6298\u53e0\u662f\u6307\u5c06\u4ee3\u7801\u7684\u67d0\u4e9b\u90e8\u5206\u6298\u53e0\u8d77\u6765&#xff0c;\u4ee5\u4fbf\u66f4\u597d\u5730\u7ba1\u7406\u548c\u6d4f\u89c8\u4ee3\u7801\u3002Vim\u652f\u6301\u591a\u79cd\u4ee3\u7801\u6298\u53e0\u65b9\u6cd5&#xff0c;\u5305\u62ec\u624b\u52a8\u6298\u53e0\u3001\u57fa\u4e8e\u7f29\u8fdb\u7684\u6298\u53e0\u548c\u57fa\u4e8e\u8bed\u6cd5\u7684\u6298\u53e0\u3002<\/p>\n<h3 id=\"2.1%20%E5%90%AF%E7%94%A8%E4%BB%A3%E7%A0%81%E6%8A%98%E5%8F%A0\" style=\"background-color:transparent\">2.1 \u542f\u7528\u4ee3\u7801\u6298\u53e0<\/h3>\n<p>\u5728Vim\u4e2d&#xff0c;\u542f\u7528\u4ee3\u7801\u6298\u53e0\u53ea\u9700\u5728.vimrc\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>set foldenable<\/p>\n<h3 id=\"2.2%20%E8%AE%BE%E7%BD%AE%E6%8A%98%E5%8F%A0%E6%96%B9%E6%B3%95\" style=\"background-color:transparent\">2.2 \u8bbe\u7f6e\u6298\u53e0\u65b9\u6cd5<\/h3>\n<p>Vim\u652f\u6301\u4ee5\u4e0b\u51e0\u79cd\u6298\u53e0\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>manual&#xff1a;\u624b\u52a8\u6298\u53e0<\/li>\n<li>indent&#xff1a;\u57fa\u4e8e\u7f29\u8fdb\u7684\u6298\u53e0<\/li>\n<li>syntax&#xff1a;\u57fa\u4e8e\u8bed\u6cd5\u7684\u6298\u53e0<\/li>\n<li>expr&#xff1a;\u57fa\u4e8e\u8868\u8fbe\u5f0f\u7684\u6298\u53e0<\/li>\n<li>marker&#xff1a;\u57fa\u4e8e\u6807\u8bb0\u7684\u6298\u53e0<\/li>\n<\/ul>\n<p>\u4f60\u53ef\u4ee5\u5728.vimrc\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u9ed8\u8ba4\u7684\u6298\u53e0\u65b9\u6cd5&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p>set foldmethod&#061;syntax<\/p>\n<h3 id=\"2.3%20%E6%89%8B%E5%8A%A8%E6%8A%98%E5%8F%A0\" style=\"background-color:transparent\">2.3 \u624b\u52a8\u6298\u53e0<\/h3>\n<p>\u624b\u52a8\u6298\u53e0\u662f\u6700\u7075\u6d3b\u7684\u4e00\u79cd\u6298\u53e0\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u624b\u52a8\u6298\u53e0\u7684\u57fa\u672c\u64cd\u4f5c&#xff1a;<\/p>\n<ul>\n<li>zf&#xff1a;\u521b\u5efa\u6298\u53e0<\/li>\n<li>zd&#xff1a;\u5220\u9664\u6298\u53e0<\/li>\n<li>zo&#xff1a;\u6253\u5f00\u6298\u53e0<\/li>\n<li>zc&#xff1a;\u5173\u95ed\u6298\u53e0<\/li>\n<\/ul>\n<p>\u4f8b\u5982&#xff0c;\u9009\u62e9\u4e00\u6bb5\u4ee3\u7801\u5e76\u6309zf\u952e&#xff0c;\u5373\u53ef\u5c06\u8be5\u6bb5\u4ee3\u7801\u6298\u53e0\u8d77\u6765\u3002<\/p>\n<h3 id=\"2.4%20%E5%9F%BA%E4%BA%8E%E7%BC%A9%E8%BF%9B%E7%9A%84%E6%8A%98%E5%8F%A0\" style=\"background-color:transparent\">2.4 \u57fa\u4e8e\u7f29\u8fdb\u7684\u6298\u53e0<\/h3>\n<p>\u57fa\u4e8e\u7f29\u8fdb\u7684\u6298\u53e0\u53ef\u4ee5\u81ea\u52a8\u6839\u636e\u4ee3\u7801\u7684\u7f29\u8fdb\u5c42\u7ea7\u8fdb\u884c\u6298\u53e0\u3002\u8bbe\u7f6e\u57fa\u4e8e\u7f29\u8fdb\u7684\u6298\u53e0\u65b9\u6cd5&#xff1a;<\/p>\n<p>set foldmethod&#061;indent<\/p>\n<p>\u5728\u8fd9\u79cd\u6a21\u5f0f\u4e0b&#xff0c;Vim\u4f1a\u6839\u636e\u4ee3\u7801\u7684\u7f29\u8fdb\u5c42\u7ea7\u81ea\u52a8\u521b\u5efa\u6298\u53e0\u3002<\/p>\n<h3 id=\"2.5%20%E5%9F%BA%E4%BA%8E%E8%AF%AD%E6%B3%95%E7%9A%84%E6%8A%98%E5%8F%A0\" style=\"background-color:transparent\">2.5 \u57fa\u4e8e\u8bed\u6cd5\u7684\u6298\u53e0<\/h3>\n<p>\u57fa\u4e8e\u8bed\u6cd5\u7684\u6298\u53e0\u4f1a\u6839\u636e\u4ee3\u7801\u7684\u8bed\u6cd5\u7ed3\u6784\u81ea\u52a8\u521b\u5efa\u6298\u53e0\u3002\u8bbe\u7f6e\u57fa\u4e8e\u8bed\u6cd5\u7684\u6298\u53e0\u65b9\u6cd5&#xff1a;<\/p>\n<p>set foldmethod&#061;syntax<\/p>\n<p>Vim\u4f1a\u6839\u636e\u8bed\u6cd5\u6587\u4ef6\u81ea\u52a8\u8fdb\u884c\u4ee3\u7801\u6298\u53e0&#xff0c;\u4f8b\u5982\u51fd\u6570\u5b9a\u4e49\u3001\u7c7b\u5b9a\u4e49\u7b49\u3002<\/p>\n<h2 id=\"3.%20%E6%A1%88%E4%BE%8B\" style=\"background-color:transparent\">3. \u6848\u4f8b<\/h2>\n<p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u6298\u53e0\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\u7684\u5e94\u7528&#xff0c;\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5177\u4f53\u7684\u793a\u4f8b\u3002\u5047\u8bbe\u6211\u4eec\u5728Vim\u4e2d\u7f16\u8f91\u4e00\u4e2aPython\u6587\u4ef6&#xff0c;\u5e76\u5e0c\u671b\u542f\u7528\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u6298\u53e0\u3002<\/p>\n<h3 id=\"3.1%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\" style=\"background-color:transparent\">3.1 \u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u9996\u5148&#xff0c;\u7f16\u8f91\u4f60\u7684.vimrc\u6587\u4ef6&#xff0c;\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>&#034; \u542f\u7528\u8bed\u6cd5\u9ad8\u4eae<br \/>\nsyntax on<\/p>\n<p>&#034; \u8bbe\u7f6e\u914d\u8272\u65b9\u6848<br \/>\ncolorscheme desert<\/p>\n<p>&#034; \u542f\u7528\u4ee3\u7801\u6298\u53e0<br \/>\nset foldenable<\/p>\n<p>&#034; \u8bbe\u7f6e\u57fa\u4e8e\u8bed\u6cd5\u7684\u6298\u53e0\u65b9\u6cd5<br \/>\nset foldmethod&#061;syntax<\/p>\n<h3 id=\"3.2%20%E7%BC%96%E8%BE%91Python%E6%96%87%E4%BB%B6\" style=\"background-color:transparent\">3.2 \u7f16\u8f91Python\u6587\u4ef6<\/h3>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aexample.py\u7684Python\u6587\u4ef6&#xff0c;\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801&#xff1a;<\/p>\n<p>def greet(name):<br \/>\n    &#034;&#034;&#034;Greets the person with the given name.&#034;&#034;&#034;<br \/>\n    print(f&#034;Hello, {name}!&#034;)<\/p>\n<p>def main():<br \/>\n    names &#061; [&#034;Alice&#034;, &#034;Bob&#034;, &#034;Charlie&#034;]<br \/>\n    for name in names:<br \/>\n        greet(name)<\/p>\n<p>if __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    main()<\/p>\n<p>\u5728\u7f16\u8f91\u5668\u4e2d\u6253\u5f00\u8be5\u6587\u4ef6&#xff0c;\u4f60\u4f1a\u770b\u5230\u4ee3\u7801\u5df2\u7ecf\u6839\u636e\u7f29\u8fdb\u548c\u8bed\u6cd5\u8fdb\u884c\u4e86\u9ad8\u4eae\u663e\u793a&#xff0c;\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528\u6298\u53e0\u529f\u80fd\u6765\u7ba1\u7406\u4ee3\u7801\u3002<\/p>\n<h3 id=\"3.3%20%E4%BD%BF%E7%94%A8%E6%8A%98%E5%8F%A0%E5%8A%9F%E8%83%BD\" style=\"background-color:transparent\">3.3 \u4f7f\u7528\u6298\u53e0\u529f\u80fd<\/h3>\n<p>\u5728example.py\u6587\u4ef6\u4e2d&#xff0c;\u5c1d\u8bd5\u4ee5\u4e0b\u6298\u53e0\u64cd\u4f5c&#xff1a;<\/p>\n<ul>\n<li>\u5c06\u5149\u6807\u653e\u5728greet\u51fd\u6570\u5b9a\u4e49\u5904&#xff0c;\u6309zf%&#xff0c;\u5c06\u6574\u4e2a\u51fd\u6570\u6298\u53e0\u8d77\u6765\u3002<\/li>\n<li>\u4f7f\u7528zo\u6253\u5f00\u6298\u53e0&#xff0c;\u4f7f\u7528zc\u5173\u95ed\u6298\u53e0\u3002<\/li>\n<li>\u5c06\u5149\u6807\u653e\u5728main\u51fd\u6570\u5b9a\u4e49\u5904&#xff0c;\u6309zf%&#xff0c;\u5c06\u6574\u4e2a\u51fd\u6570\u6298\u53e0\u8d77\u6765\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u64cd\u4f5c&#xff0c;\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u548c\u6d4f\u89c8\u4ee3\u7801&#xff0c;\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<h2 id=\"4.%20%E9%AB%98%E7%BA%A7%E4%BD%BF%E7%94%A8%E6%8A%80%E5%B7%A7\" style=\"background-color:transparent\">4. \u9ad8\u7ea7\u4f7f\u7528\u6280\u5de7<\/h2>\n<h3 id=\"4.1%20%E8%87%AA%E5%8A%A8%E5%91%BD%E4%BB%A4\" style=\"background-color:transparent\">4.1 \u81ea\u52a8\u547d\u4ee4<\/h3>\n<p>\u53ef\u4ee5\u4f7f\u7528Vim\u7684\u81ea\u52a8\u547d\u4ee4&#xff0c;\u5728\u6253\u5f00\u7279\u5b9a\u7c7b\u578b\u7684\u6587\u4ef6\u65f6\u81ea\u52a8\u542f\u7528\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u6298\u53e0\u3002\u4f8b\u5982&#xff0c;\u4ee5\u4e0b\u914d\u7f6e\u4f1a\u5728\u6253\u5f00Python\u6587\u4ef6\u65f6\u81ea\u52a8\u542f\u7528\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u6298\u53e0&#xff1a;<\/p>\n<p>augroup python<br \/>\n    autocmd!<br \/>\n    autocmd BufRead,BufNewFile *.py syntax on<br \/>\n    autocmd BufRead,BufNewFile *.py set foldmethod&#061;syntax<br \/>\naugroup END<\/p>\n<h3 id=\"4.2%20%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8A%98%E5%8F%A0%E6%96%87%E6%9C%AC\" style=\"background-color:transparent\">4.2 \u81ea\u5b9a\u4e49\u6298\u53e0\u6587\u672c<\/h3>\n<p>\u53ef\u4ee5\u81ea\u5b9a\u4e49\u6298\u53e0\u540e\u7684\u663e\u793a\u6587\u672c&#xff0c;\u4f7f\u5176\u66f4\u52a0\u7b80\u6d01\u660e\u4e86\u3002\u4f8b\u5982&#xff0c;\u4ee5\u4e0b\u914d\u7f6e\u4f1a\u5728\u6298\u53e0Python\u51fd\u6570\u65f6\u663e\u793a\u51fd\u6570\u5b9a\u4e49&#xff1a;<\/p>\n<p>set foldtext&#061;CustomFoldText()<\/p>\n<p>function! CustomFoldText()<br \/>\n    let line &#061; getline(v:foldstart)<br \/>\n    let numLines &#061; v:foldend &#8211; v:foldstart &#043; 1<br \/>\n    return line . &#039; &#8230; &#039; . numLines . &#039; lines&#039;<br \/>\nendfunction<\/p>\n<h3 id=\"4.3%20%E5%BF%AB%E9%80%9F%E6%8A%98%E5%8F%A0%E4%B8%8E%E5%B1%95%E5%BC%80\" style=\"background-color:transparent\">4.3 \u5feb\u901f\u6298\u53e0\u4e0e\u5c55\u5f00<\/h3>\n<p>\u53ef\u4ee5\u4f7f\u7528\u5feb\u6377\u952e\u5feb\u901f\u6298\u53e0\u548c\u5c55\u5f00\u4ee3\u7801\u3002\u4f8b\u5982&#xff0c;\u4ee5\u4e0b\u914d\u7f6e\u4f1a\u5c06F1\u952e\u6620\u5c04\u4e3a\u5c55\u5f00\u6240\u6709\u6298\u53e0&#xff0c;F2\u952e\u6620\u5c04\u4e3a\u6298\u53e0\u6240\u6709\u4ee3\u7801&#xff1a;<\/p>\n<p>nnoremap &lt;F1&gt; :set foldlevel&#061;0&lt;CR&gt;<br \/>\nnnoremap &lt;F2&gt; :set foldlevel&#061;20&lt;CR&gt;<\/p>\n<h2 id=\"5.%20%E5%AE%9E%E7%94%A8%E6%8F%92%E4%BB%B6\" style=\"background-color:transparent\">5. \u5b9e\u7528\u63d2\u4ef6<\/h2>\n<p>Vim\u6709\u8bb8\u591a\u63d2\u4ef6\u53ef\u4ee5\u589e\u5f3a\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u6298\u53e0\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u51e0\u4e2a\u63a8\u8350\u7684\u63d2\u4ef6&#xff1a;<\/p>\n<h3 id=\"5.1%20vim-polyglot\" style=\"background-color:transparent\">5.1 vim-polyglot<\/h3>\n<p>vim-polyglot\u662f\u4e00\u4e2a\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684\u8bed\u6cd5\u9ad8\u4eae\u63d2\u4ef6\u3002\u5b89\u88c5\u8be5\u63d2\u4ef6\u53ef\u4ee5\u589e\u5f3aVim\u7684\u8bed\u6cd5\u9ad8\u4eae\u529f\u80fd\u3002<\/p>\n<p># \u4f7f\u7528Vundle\u5b89\u88c5<br \/>\nPlugin &#039;sheerun\/vim-polyglot&#039;<\/p>\n<h3 id=\"5.2%20NERDTree\" style=\"background-color:transparent\">5.2 NERDTree<\/h3>\n<p>NERDTree\u662f\u4e00\u4e2a\u6587\u4ef6\u6d4f\u89c8\u5668\u63d2\u4ef6&#xff0c;\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u65b9\u4fbf\u5730\u7ba1\u7406\u9879\u76ee\u6587\u4ef6\u548c\u4ee3\u7801\u6298\u53e0\u3002<\/p>\n<p># \u4f7f\u7528Vundle\u5b89\u88c5<br \/>\nPlugin &#039;preservim\/nerdtree&#039;<\/p>\n<h3 id=\"5.3%20vim-fugitive\" style=\"background-color:transparent\">5.3 vim-fugitive<\/h3>\n<p>vim-fugitive\u662f\u4e00\u4e2aGit\u96c6\u6210\u63d2\u4ef6&#xff0c;\u53ef\u4ee5\u5728Vim\u4e2d\u65b9\u4fbf\u5730\u8fdb\u884c\u7248\u672c\u63a7\u5236\u3002<\/p>\n<p># \u4f7f\u7528Vundle\u5b89\u88c5<br \/>\nPlugin &#039;tpope\/vim-fugitive&#039;<\/p>\n<h2 id=\"6.%20%E6%80%BB%E7%BB%93\" style=\"background-color:transparent\">6. \u603b\u7ed3<\/h2>\n<p>\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728Vim\u4e2d\u4f7f\u7528\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u6298\u53e0\u7684\u57fa\u672c\u65b9\u6cd5\u548c\u9ad8\u7ea7\u6280\u5de7\u3002\u901a\u8fc7\u914d\u7f6e\u548c\u4f7f\u7528\u8fd9\u4e9b\u529f\u80fd&#xff0c;\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7f16\u8f91\u6548\u7387\u3002\u5e0c\u671b\u672c\u6587\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u638c\u63e1Vim\u7684\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u6298\u53e0\u529f\u80fd&#xff0c;\u5e76\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\u5e94\u7528\u8fd9\u4e9b\u6280\u5de7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u5728\u6587\u672c\u7f16\u8f91\u5668\u7684\u4f7f\u7528\u4e2d\uff0c\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u6298\u53e0\u662f\u4e24\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u529f\u80fd\uff0c\u5b83\u4eec\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u5347\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7f16\u8f91\u6548\u7387\u3002Vim\u4f5c\u4e3a\u4e00\u6b3e\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u81ea\u7136\u4e5f\u652f\u6301\u8fd9\u4e9b\u529f\u80fd\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Vim\u4e2d\u542f\u7528\u548c\u914d\u7f6e\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0\uff0c\u5e2e\u52a9\u4f60\u66f4\u9ad8\u6548\u5730\u7f16\u5199\u548c\u7ba1\u7406\u4ee3\u7801\u3002_vim \u6298\u53e0<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,1801,1802,43,44],"topic":[],"class_list":["post-23431","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-linux-vim","tag-vim","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux Vim\u6559\u7a0b\uff08\u5341\u4e8c\uff09\uff1a\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/23431.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Vim\u6559\u7a0b\uff08\u5341\u4e8c\uff09\uff1a\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u5728\u6587\u672c\u7f16\u8f91\u5668\u7684\u4f7f\u7528\u4e2d\uff0c\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u6298\u53e0\u662f\u4e24\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u529f\u80fd\uff0c\u5b83\u4eec\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u5347\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7f16\u8f91\u6548\u7387\u3002Vim\u4f5c\u4e3a\u4e00\u6b3e\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u81ea\u7136\u4e5f\u652f\u6301\u8fd9\u4e9b\u529f\u80fd\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Vim\u4e2d\u542f\u7528\u548c\u914d\u7f6e\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0\uff0c\u5e2e\u52a9\u4f60\u66f4\u9ad8\u6548\u5730\u7f16\u5199\u548c\u7ba1\u7406\u4ee3\u7801\u3002_vim \u6298\u53e0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/23431.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T23:47:40+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/23431.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/23431.html\",\"name\":\"Linux Vim\u6559\u7a0b\uff08\u5341\u4e8c\uff09\uff1a\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T23:47:40+00:00\",\"dateModified\":\"2025-04-18T23:47:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/23431.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/23431.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/23431.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux Vim\u6559\u7a0b\uff08\u5341\u4e8c\uff09\uff1a\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux Vim\u6559\u7a0b\uff08\u5341\u4e8c\uff09\uff1a\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/23431.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux Vim\u6559\u7a0b\uff08\u5341\u4e8c\uff09\uff1a\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u5728\u6587\u672c\u7f16\u8f91\u5668\u7684\u4f7f\u7528\u4e2d\uff0c\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u6298\u53e0\u662f\u4e24\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u529f\u80fd\uff0c\u5b83\u4eec\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u5347\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7f16\u8f91\u6548\u7387\u3002Vim\u4f5c\u4e3a\u4e00\u6b3e\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u81ea\u7136\u4e5f\u652f\u6301\u8fd9\u4e9b\u529f\u80fd\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Vim\u4e2d\u542f\u7528\u548c\u914d\u7f6e\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0\uff0c\u5e2e\u52a9\u4f60\u66f4\u9ad8\u6548\u5730\u7f16\u5199\u548c\u7ba1\u7406\u4ee3\u7801\u3002_vim \u6298\u53e0","og_url":"https:\/\/www.wsisp.com\/helps\/23431.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T23:47:40+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/23431.html","url":"https:\/\/www.wsisp.com\/helps\/23431.html","name":"Linux Vim\u6559\u7a0b\uff08\u5341\u4e8c\uff09\uff1a\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T23:47:40+00:00","dateModified":"2025-04-18T23:47:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/23431.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/23431.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/23431.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux Vim\u6559\u7a0b\uff08\u5341\u4e8c\uff09\uff1a\u8bed\u6cd5\u9ad8\u4eae\u4e0e\u4ee3\u7801\u6298\u53e0"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/23431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=23431"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/23431\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=23431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=23431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=23431"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=23431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}