{"id":465,"date":"2016-02-15T23:11:50","date_gmt":"2016-02-15T15:11:50","guid":{"rendered":"http:\/\/wp.iur.me\/?p=465"},"modified":"2022-11-06T20:14:47","modified_gmt":"2022-11-06T12:14:47","slug":"vim%e7%9a%84%e5%ae%89%e8%a3%85%e4%b8%8e%e9%85%8d%e7%bd%ae%e5%8f%8a%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.iur.me\/?p=465","title":{"rendered":"vim\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u53ca\u4f7f\u7528"},"content":{"rendered":"<p>Debian\u4e0b\u5b89\u88c5<br \/>\napt-get install vim<\/p>\n<p>Centos\u4e0b\u5b89\u88c5<br \/>\nyum install vim<\/p>\n<p>\u8ba9vi\u7f16\u8f91\u5668\u6839\u636e\u5404\u79cd\u7a0b\u5e8f\u8bed\u8a00\u7684\u8bed\u6cd5\u663e\u793a\u4e0d\u540c\u7684\u989c\u8272\uff0c\u4ee5\u65b9\u4fbf\u7f16\u8f91:<br \/>\n#vi \/etc\/vim\/vimrc<br \/>\n\u5c06&#8221;syntax on\u524d\u9762\u7684\u6ce8\u91ca\u53bb\u9664,\u5373:<br \/>\nsyntax on<\/p>\n<p>centos\u7684VIM\u914d\u7f6e\u6587\u4ef6\u662f\/etc\/vimrc\uff0c\u8fd9\u70b9\u548cdebian\u4e0d\u540c<\/p>\n<p>\u7f16\u8f91\u4e2a\u4eba\u7528\u6237\u4e0b\u7684.vimrc\uff0c\u4ee5\u65b9\u4fbf\u4f7f\u7528tab\u952e\uff0c\u6309\u4e00\u4e0btab\u8fdb\u56db\u683c\uff0c\u65b9\u4fbf\u4ee3\u7801\u7f16\u8f91:<br \/>\n# vi \/root\/.vimrc<br \/>\nset expandtab<br \/>\nset shiftwidth=4<br \/>\nset softtabstop=4<br \/>\nset tabstop=4<\/p>\n<p>\u4e00\u4e2a\u7ecf\u5178\u914d\u7f6e\u662f\uff0c\u5728\u7528\u6237\u76ee\u5f55\uff0c\u4e5f\u5373root\u76ee\u5f55\u4e0b\u65b0\u5efa\u914d\u7f6e\u6587\u4ef6.vimrc<br \/>\n<code><br \/>\nset nocp<br \/>\nset ru<br \/>\nset nu<br \/>\nsyntax on<br \/>\nset sw=2<br \/>\nset ts=2<br \/>\nset nocp:\u7981\u6b62\u4f7f\u7528VI\u517c\u5bb9\u6a21\u5f0f<br \/>\nset ru:\u663e\u793a\u6807\u5c3a<br \/>\nset nu:\u663e\u793a\u884c\u53f7<br \/>\nsyntax on:\u8bed\u6cd5\u9ad8\u4eae<br \/>\nset sw=2:\u81ea\u52a8\u7f29\u8fdb2\u5b57\u7b26(\u4e3a\u4e86\u548cemacs\u9ed8\u8ba4\u7684\u503c\u5bf9\u5e94)<br \/>\nset ts=2:tab\u5bbd\u5ea62\u5b57\u7b26(\u540c\u4e0a)<br \/>\n<\/code><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian\u4e0b\u5b89\u88c5 apt-get install vim Centos\u4e0b\u5b89\u88c5 yum install vim [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[35,51,74],"class_list":["post-465","post","type-post","status-publish","format-standard","hentry","category-it","tag-linux","tag-vim","tag-74"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts\/465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=465"}],"version-history":[{"count":1,"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts\/465\/revisions"}],"predecessor-version":[{"id":719,"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts\/465\/revisions\/719"}],"wp:attachment":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}