{"id":1167,"date":"2013-10-01T04:00:04","date_gmt":"2013-09-30T19:00:04","guid":{"rendered":"http:\/\/appsweets.net\/blog\/?p=1167"},"modified":"2013-10-01T04:03:11","modified_gmt":"2013-09-30T19:03:11","slug":"expandtab-2","status":"publish","type":"post","link":"https:\/\/appsweets.net\/blog\/2013\/10\/01\/expandtab-2\/","title":{"rendered":"expandtab #2"},"content":{"rendered":"<div class=\"db9cc8cdb64025d13c1cc9dad0a0e262\" data-index=\"1\" style=\"float: left; margin: 16px 16px 16px 0;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-5825700137064158\";\r\n\/* 250sq, appsweets-blog *\/\r\ngoogle_ad_slot = \"4837931762\";\r\ngoogle_ad_width = 250;\r\ngoogle_ad_height = 250;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>\u3082\u3046\u5c11\u3057\u6574\u7406\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>vim \u3067 input \u30e2\u30fc\u30c9\u3067 tab \u30ad\u30fc\u3092\u62bc\u3057\u305f\u6642\u306b\u3001\u307e\u305a\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u53c2\u7167\u3055\u308c\u308b:<\/p>\n<ul>\n<li>tabstop<\/li>\n<li>expandtab<\/li>\n<\/ul>\n<p>tab \u3068\u30b9\u30da\u30fc\u30b9\u306e\u5909\u63db\u3068\u3044\u3046\u70b9\u3067\u898b\u308b\u3068\u3001\u3053\u306e 2 \u3064\u304c\u30b3\u30a2\u306b\u306a\u308b\u3002tabstop \u306f tab \u304c\u6700\u5927\u4f55\u6587\u5b57\u5e45\u5206\u306b\u4f38\u3073\u308b\u304b\u3092\u6307\u5b9a\u3059\u308b\u3002expandtab \u306f\u3001tab \u30ad\u30fc\u3092\u62bc\u3057\u305f\u969b\u306b\u5bfe\u5fdc\u3059\u308b\u6587\u5b57\u6570\u5206\u306e\u7a7a\u767d\u306b\u7f6e\u304d\u63db\u3048\u308b\u304b\u3001\u304a\u3088\u3073\u884c\u982d\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u6700\u5c0f\u5316\uff08\u3064\u307e\u308a\u3001\u7a7a\u767d\u3092\u53ef\u80fd\u306a\u3089\u30bf\u30d6\u306b\u7f6e\u304d\u63db\u3048\u308b\u51e6\u7406\uff09\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u304b\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<p>\u4e00\u65b9\u3067\u3001\u672c\u8cea\u7684\u3067\u306f\u306a\u3044\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u53c2\u7167\u3055\u308c\u308b:<\/p>\n<ul>\n<li>softtabstop<\/li>\n<li>shiftwidth<\/li>\n<li>smarttab<\/li>\n<\/ul>\n<p>softtabstop \u306f\u3001\u300c\u30bf\u30d6\u5e45\u306f\u6a19\u6e96\u306e 8 \u6841\u304b\u3089\u5909\u3048\u305f\u304f\u306a\u3044\u3051\u3069\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u5358\u4f4d\u306f 8 \u3058\u3083\u306a\u3044\u6570\u5024\u306b\u3057\u305f\u3044\uff01\uff01\u300d\u3068\u3044\u3046\u5411\u304d\u306b\u5fdc\u3048\u308b\u305f\u3081\u306b\u3042\u308b\u3002\u30bf\u30d6\u5e45\u81ea\u4f53\u3092\u5909\u3048\u3066\u3082\u6c17\u306b\u3057\u306a\u3044\u306a\u3089\u3001\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5f04\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002<\/p>\n<p>shiftwidth \u306f\u3001\u672c\u6765\u306f\u3001&lt; \u3068 &gt; \u30b3\u30de\u30f3\u30c9\u306b\u3088\u3063\u3066\u30b7\u30d5\u30c8\u3059\u308b\u969b\u306e\u30b7\u30d5\u30c8\u91cf\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3060\u304c\u3001smarttab \u306e\u72b6\u614b\u306b\u3088\u3063\u3066\u306f tab \u30ad\u30fc\u62bc\u4e0b\u6642\u306b\u53c2\u7167\u3055\u308c\u308b\u3068\u304d\u304c\u3042\u308b\u3002<\/p>\n<p>smarttab \u306f\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u91cf\u3092\u30ab\u30fc\u30bd\u30eb\u306e\u4f4d\u7f6e\u306b\u5fdc\u3058\u305f\u6587\u8108\u3067\u9078\u629e\u3055\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u3002smarttab \u304c\u30aa\u30f3\u306e\u72b6\u614b\u3067\u3001\u30ab\u30fc\u30bd\u30eb\u304c\u884c\u982d\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u9818\u57df\u306e\u4e2d\u306b\u3042\u308b\u6642\u3001shiftwidth \u306e\u5206\u3060\u3051\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u308b\u3002smtarttab \u304c\u30aa\u30d5\u3067\u3042\u308b\u304b\u3001\u3042\u308b\u3044\u306f\u30aa\u30f3\u3067\u3042\u3063\u3066\u3082\u30ab\u30fc\u30bd\u30eb\u304c\u884c\u982d\u30a4\u30f3\u30c7\u30f3\u30c8\u3067\u306f\u306a\u3044\u7b87\u6240\u306b\u3042\u308b\u5834\u5408\u306f\u3001softtabstop\u3001tabstop \u306e\u9806\u306b\u8a55\u4fa1\u3057\u3066 0 \u3067\u306f\u306a\u3044\u6700\u521d\u306e\u5024\u3092\u53d6\u308a\u51fa\u3057\u3001\u305d\u308c\u3092\u30a4\u30f3\u30c7\u30f3\u30c8\u91cf\u3068\u3059\u308b\u3002<\/p>\n<p>\u3068\u3053\u306e\u3088\u3046\u306b\u3001expandtab \u81ea\u4f53\u306f\u5358\u7d14\u660e\u5feb\u306a\u306e\u3060\u3051\u3069\u3002\u5b57\u4e0b\u3052\u30b9\u30bf\u30a4\u30eb\u3068\u3044\u3046\u500b\u3005\u4eba\u306e\u597d\u307f\u306b\u3082\u306e\u3059\u3054\u304f\u5de6\u53f3\u3055\u308c\u308b\u3082\u306e\u306b\u3067\u304d\u308b\u3060\u3051\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306e\u3001\u4ed8\u52a0\u7684\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u304a\u304b\u3052\u3067\u5168\u4f53\u7684\u306b\u306a\u3093\u3060\u304b\u308f\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3082\u306e\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u3055\u3089\u306b cpoptions \u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u306b\u3088\u3063\u3066\u5fae\u5999\u306b\u90e8\u5206\u7684\u306a\u52d5\u4f5c\u304c\u5909\u308f\u3063\u305f\u308a\u3001\u3042\u308b\u3044\u306f\u524d\u306e\u8a18\u4e8b\u306e\u901a\u308a backspace \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u7d61\u3093\u3067\u304d\u305f\u308a\u3001:retab \u30b3\u30de\u30f3\u30c9\u306e\u52d5\u4f5c\u306b\u3082\u5f71\u97ff\u3057\u305f\u308a\u3059\u308b\u3002\u30ab\u30aa\u30b9\u3059\u304e\u308b\u3002<\/p>\n<div class=\"db9cc8cdb64025d13c1cc9dad0a0e262\" data-index=\"1\" style=\"float: left; margin: 16px 16px 16px 0;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-5825700137064158\";\r\n\/* 250sq, appsweets-blog *\/\r\ngoogle_ad_slot = \"4837931762\";\r\ngoogle_ad_width = 250;\r\ngoogle_ad_height = 250;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u3082\u3046\u5c11\u3057\u6574\u7406\u3057\u3066\u307f\u308b\u3002 vim \u3067 input \u30e2\u30fc\u30c9\u3067 tab \u30ad\u30fc\u3092\u62bc\u3057\u305f\u6642\u306b\u3001\u307e\u305a\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u53c2\u7167\u3055\u308c\u308b: tabstop expandtab tab \u3068\u30b9\u30da\u30fc\u30b9\u306e\u5909\u63db\u3068\u3044\u3046\u70b9\u3067\u898b\u308b\u3068\u3001\u3053\u306e 2 \u3064\u304c\u30b3\u30a2\u306b\u306a\u308b\u3002tabstop \u306f tab \u304c\u6700\u5927\u4f55\u6587\u5b57\u5e45\u5206\u306b\u4f38\u3073\u308b\u304b\u3092\u6307\u5b9a\u3059\u308b\u3002expandtab \u306f\u3001tab \u30ad\u30fc\u3092\u62bc\u3057\u305f\u969b\u306b\u5bfe\u5fdc\u3059\u308b\u6587\u5b57\u6570\u5206\u306e\u7a7a\u767d\u306b\u7f6e\u304d\u63db\u3048\u308b\u304b\u3001\u304a\u3088\u3073\u884c\u982d\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u6700\u5c0f\u5316\uff08\u3064\u307e\u308a\u3001\u7a7a\u767d\u3092\u53ef\u80fd\u306a\u3089\u30bf\u30d6\u306b\u7f6e\u304d\u63db\u3048\u308b\u51e6\u7406\uff09\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u304b\u3092\u6307\u5b9a\u3059\u308b\u3002 \u4e00\u65b9\u3067\u3001\u672c\u8cea\u7684\u3067\u306f\u306a\u3044\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u53c2\u7167\u3055\u308c\u308b: softtabstop shiftwidth smarttab softtabstop \u306f\u3001\u300c\u30bf\u30d6\u5e45\u306f\u6a19\u6e96\u306e 8 \u6841\u304b\u3089\u5909\u3048\u305f\u304f\u306a\u3044\u3051\u3069\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u5358\u4f4d\u306f 8 \u3058\u3083\u306a\u3044\u6570\u5024\u306b\u3057\u305f\u3044\uff01\uff01\u300d\u3068\u3044\u3046\u5411\u304d\u306b\u5fdc\u3048\u308b\u305f\u3081\u306b\u3042\u308b\u3002\u30bf\u30d6\u5e45\u81ea\u4f53\u3092\u5909\u3048\u3066\u3082\u6c17\u306b\u3057\u306a\u3044\u306a\u3089\u3001\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5f04\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002 shiftwidth \u306f\u3001\u672c\u6765\u306f\u3001&lt; \u3068 &gt; \u30b3\u30de\u30f3\u30c9\u306b\u3088\u3063\u3066\u30b7\u30d5\u30c8\u3059\u308b\u969b\u306e\u30b7\u30d5\u30c8\u91cf\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3060\u304c\u3001smarttab \u306e\u72b6\u614b\u306b\u3088\u3063\u3066\u306f tab \u30ad\u30fc\u62bc\u4e0b\u6642\u306b\u53c2\u7167\u3055\u308c\u308b\u3068\u304d\u304c\u3042\u308b\u3002 smarttab \u306f\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u91cf\u3092\u30ab\u30fc\u30bd\u30eb\u306e\u4f4d\u7f6e\u306b\u5fdc\u3058\u305f\u6587\u8108\u3067\u9078\u629e\u3055\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u3002smarttab \u304c\u30aa\u30f3\u306e\u72b6\u614b\u3067\u3001\u30ab\u30fc\u30bd\u30eb\u304c\u884c\u982d\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u9818\u57df\u306e\u4e2d\u306b\u3042\u308b\u6642\u3001shiftwidth \u306e\u5206\u3060\u3051\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u308b\u3002smtarttab &hellip; <a href=\"https:\/\/appsweets.net\/blog\/2013\/10\/01\/expandtab-2\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5,3,4],"class_list":["post-1167","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-javascript","tag-vi","tag-wasavi"],"_links":{"self":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/1167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/comments?post=1167"}],"version-history":[{"count":4,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/1167\/revisions"}],"predecessor-version":[{"id":1171,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/1167\/revisions\/1171"}],"wp:attachment":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/media?parent=1167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/categories?post=1167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/tags?post=1167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}