{"id":273365,"date":"2021-01-11T15:57:34","date_gmt":"2021-01-11T07:57:34","guid":{"rendered":"http:\/\/4563.org\/?p=273365"},"modified":"2021-01-11T15:57:34","modified_gmt":"2021-01-11T07:57:34","slug":"%e6%b1%82%e6%95%99%e6%a0%b9%e6%8d%ae%e4%b8%8d%e5%90%8c%e6%96%87%e4%bb%b6%e7%b1%bb%e5%9e%8b%ef%bc%8c%e8%87%aa%e5%8a%a8%e5%88%87%e6%8d%a2%e7%bc%a9%e7%b4%a7","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=273365","title":{"rendered":"\u6c42\u6559\u6839\u636e\u4e0d\u540c\u6587\u4ef6\u7c7b\u578b\uff0c\u81ea\u52a8\u5207\u6362\u7f29\u7d27"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6c42\u6559\u6839\u636e\u4e0d\u540c\u6587\u4ef6\u7c7b\u578b\uff0c\u81ea\u52a8\u5207\u6362\u7f29\u7d27               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AmitabhaPk <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u5404\u4f4d\u5927\u4f6c\uff0c\u6c42\u6559\u5982\u4f55\u914d\u7f6e vimrc\uff0c\u6839\u636e filetype \u5339\u914d\u7f29\u7d27\u7c7b\u578b<\/p>\n<p>\u6bd4\u5982\u5728 kernel \u5199\u4ee3\u7801\u65f6\uff0c\u8981\u7528 TAB \u7f29\u8fdb\uff0c\u4f46\u5728\u5e94\u7528\u5c42\u5199 cpp \u4ee3\u7801\u8981\u6c42 4 \u4e2a\u7a7a\u683c\u7f29\u7d27\uff0c\u4e0d\u4f1a\u914d\u7f6e\uff0c\u6bcf\u6b21\u5207\u6362\u65f6 \u90fd\u8981\u624b\u52a8\u4fee\u6539 vimrc \u3002\u3002\u3002\u3002\u3002      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4904404\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : odirus <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/editorconfig.org\/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4904405\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yzbythesea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             autocmd Filetype cpp set softtabstop=4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4904406\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhanglintc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u662f\u6211\u7684\uff0c\u6b63\u5e38\u662f 4 \u4e2a\u7a7a\u683c\u7f29\u8fdb\uff0c\u5982\u679c\u662f ruby \u3001html \u7b49\uff0c\u5c31\u662f 2 \u4e2a\u7f29\u8fdb\u3002<br \/>\u4f60\u770b\u7740\u6539\u6539\u5c31\u884c\u4e86\u3002<\/p>\n<p>&#8221; general indent setting<br \/>set tabstop=4 &#8221; ts<br \/>set softtabstop=4 &#8221; sts<br \/>set shiftwidth=4 &#8221; sw<br \/>set expandtab <br \/>set smarttab<\/p>\n<p>&#8221; languages specific indent setting<br \/>autocmd FileType ruby,html,xml,smarty setlocal ai ts=2 sts=2 sw=2<\/p>\n<p>ai =&gt; autoindent<br \/>ts =&gt; tabstop<br \/>sts =&gt; softtabstop<br \/>sw =&gt; shiftwidth                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4904407\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : AmitabhaPk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yzbythesea \u6211\u521a\u624d\u8bbe\u7f6e\u6210 tabstop=4 expendtab \u5c31\u597d\u4e86 \u591a\u8c22\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4904408\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : AmitabhaPk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zhanglintc \u54c8\u54c8 \u6536\u4e86 \u73b0\u5728\u8fd8\u4e0d\u4f1a\u8fd9\u4e48\u591a\u3002\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4904409\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : AmitabhaPk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @odirus \u8fd9\u4e2a\u5f88\u597d \u8bfb\u4e00\u4e0b\u914d\u7f6e\u4e0a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4904410\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : IgniteWhite <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7684 https:\/\/github.com\/g6ai\/dotfiles<\/p>\n<p>&#8221; Tab<br \/>filetype indent on<br \/>set expandtab &#8221; Always use space instead of tab<br \/>autocmd FileType vim setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2<br \/>autocmd FileType sh setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4<br \/>autocmd FileType python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4<br \/>autocmd FileType tex setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4<\/p>\n<p>nathanaelkane\/vim-indent-guides \u8fd9\u4e2a\u63d2\u4ef6\u4e5f\u4e0d\u9519                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6c42\u6559\u6839\u636e\u4e0d\u540c\u6587\u4ef6\u7c7b\u578b\uff0c\u81ea\u52a8\u5207\u6362\u7f29\u7d27&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/273365"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273365"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/273365\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=273365"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=273365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}