{"id":378,"date":"2005-05-03T15:45:54","date_gmt":"2005-05-03T13:45:54","guid":{"rendered":"http:\/\/www.marblestation.com\/blog\/?p=378"},"modified":"2012-04-26T18:16:02","modified_gmt":"2012-04-26T16:16:02","slug":"vim-convertir-espacios-en-tabuladores","status":"publish","type":"post","link":"https:\/\/www.marblestation.com\/?p=378","title":{"rendered":"Vim, convertir espacios en tabuladores"},"content":{"rendered":"<p>Habitualmente, es m\u00e1s c\u00f3modo trabajar con tabuladores que con espacios al indentar nuestro c\u00f3digo. Es posible que ya dispongamos de c\u00f3digo indentado con espacios, para convertir dichos espacios en tabuladores usando vim:<\/p>\n<pre>\r\n:ret! 4\r\n<\/pre>\n<p>Esto crear\u00e1 un tabulador cada 4 espacios. En todo caso, tambi\u00e9n hay <a href=\"http:\/\/vim.sourceforge.net\/tips\/tip.php?tip_id=247\">otras formas de conseguir el mismo efecto<\/a>.<\/p>\n<p>Usar tabulaciones es m\u00e1s c\u00f3modo porque:<\/p>\n<ul>\n<li>El fichero ocupa menos.<\/li>\n<li>La persona que esta leyendo el texto puede ajustar el tama\u00f1o de las tabulaciones.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Habitualmente, es m\u00e1s c\u00f3modo trabajar con tabuladores que con espacios al indentar nuestro c\u00f3digo. Es posible que ya dispongamos de c\u00f3digo indentado con espacios, para convertir dichos espacios en tabuladores usando vim: :ret! 4 Esto crear\u00e1 un tabulador cada 4 espacios. En todo caso, tambi\u00e9n hay otras formas de conseguir el mismo efecto. Usar tabulaciones &hellip; <a href=\"https:\/\/www.marblestation.com\/?p=378\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Vim, convertir espacios en tabuladores<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6],"tags":[],"class_list":["post-378","post","type-post","status-publish","format-standard","hentry","category-espanyol","category-tecnologia"],"_links":{"self":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=378"}],"version-history":[{"count":1,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts\/378\/revisions"}],"predecessor-version":[{"id":1536,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=\/wp\/v2\/posts\/378\/revisions\/1536"}],"wp:attachment":[{"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marblestation.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}