{"id":448,"date":"2014-07-07T05:48:04","date_gmt":"2014-07-07T05:48:04","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=448"},"modified":"2014-07-07T05:48:04","modified_gmt":"2014-07-07T05:48:04","slug":"%e4%b8%80%e4%ba%9bvim%e9%85%8d%e7%bd%ae%e7%ad%96%e7%95%a5","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/448.html","title":{"rendered":"\u4e00\u4e9bVim\u914d\u7f6e\u7b56\u7565"},"content":{"rendered":"<pre class=\"lang:sh decode:true  \">#! \/bin\/bash\n\nmv \/etc\/vim\/vimrc \/etc\/vim\/vimrc.bak\nsudo echo '\nset showcmd  \" Show (partial) command in status line.\nset showmatch   \" Show matching brackets.\nset ignorecase  \" Do case insensitive matching\nset smartcase   \" Do smart case matching\nset incsearch   \" Incremental search\nset autowrite   \" Automatically save before commands like :next and :make\n\"set hidden  \" Hide buffers when they are abandoned\nset mouse=a  \" Enable mouse usage (all modes)\nset nu\nset nobackup\nset ai\nset tabstop=4\nset shiftwidth=4\nset hlsearch\nset ruler    \" \u663e\u793a\u5f53\u524d\u7684\u884c\u53f7\u5217\u53f7\nset background=dark \" \u5c1d\u8bd5\u4f7f\u7528\u5728\u6697\u8272\u80cc\u666f\u4e2d\u5408\u9002\u7684\u989c\u8272\n\n\" Source a global configuration file if available\nif filereadable(\"\/etc\/vim\/vimrc.local\")\n  source \/etc\/vim\/vimrc.local\nendif\n\n#colorscheme evening\t\" \u8bbe\u7f6eVim\u7684\u914d\u8272\u65b9\u6848(\u53ef\u6839\u636e\u81ea\u5df1\u559c\u597d\u8fdb\u884c\u8c03\u6574)\n\nfiletype on  \"\u68c0\u6d4b\u6587\u4ef6\u7c7b\u578b\nfiletype indent on  \" \u9488\u5bf9\u4e0d\u540c\u7684\u6587\u4ef6\u7c7b\u578b\u91c7\u7528\u4e0d\u540c\u7684\u7f29\u8fdb\u683c\u5f0f\nfiletype plugin on  \"\u5141\u8bb8\u63d2\u4ef6\nfiletype plugin indent on   \"\u542f\u52a8\u81ea\u52a8\u8865\u5168\nset nocompatible    \" \u975e\u517c\u5bb9vi\u6a21\u5f0f\u3002\u53bb\u6389\u8ba8\u538c\u7684\u6709\u5173vi\u4e00\u81f4\u6027\u6a21\u5f0f\nset autoread     \" \u6587\u4ef6\u4fee\u6539\u4e4b\u540e\u81ea\u52a8\u8f7d\u5165\nset shortmess=atI   \" \u542f\u52a8\u7684\u65f6\u5019\u4e0d\u663e\u793a\u90a3\u4e2a\u63f4\u52a9\u7d22\u9a6c\u91cc\u513f\u7ae5\u7684\u63d0\u793a\nset nobackup     \" \u53d6\u6d88\u5907\u4efd\nset nowb\nset noswapfile\nset ruler    \"\u663e\u793a\u5f53\u524d\u7684\u884c\u53f7\u5217\u53f7\n' &gt;&gt; \/etc\/vim\/vimrc<\/pre>\n<p><span style=\"color: #454545;\">\u5199\u6210Shell\u7684\u65b9\u5f0f\uff0c\u65b9\u4fbf\u4e00\u952e\u4fee\u6539~~{\u4f7f\u7528\u524d\u6ce8\u610f\uff1a1.chmod +x\u00a0\uff1b2.\u6743\u9650\u95ee\u9898&#8211;sudo}<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#! \/bin\/bash mv \/etc\/vim\/vimrc \/etc\/vim\/vimrc.bak sudo  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,12],"tags":[43],"class_list":["post-448","post","type-post","status-publish","format-standard","hentry","category-linux","category-tools","tag-vim"],"views":2217,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=448"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/448\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}