{"id":29544,"date":"2016-07-11T07:40:29","date_gmt":"2016-07-11T07:40:29","guid":{"rendered":"http:\/\/systemadmin.es\/?p=5087"},"modified":"2016-07-11T07:40:29","modified_gmt":"2016-07-11T07:40:29","slug":"vi-habilitar-y-deshabilitar-el-resaltado-de-sintaxis","status":"publish","type":"post","link":"https:\/\/icloud.pe\/blog\/vi-habilitar-y-deshabilitar-el-resaltado-de-sintaxis\/","title":{"rendered":"vi: Habilitar y deshabilitar el resaltado de sintaxis"},"content":{"rendered":"<p>En vi podemos habilitar y deshabilitar f\u00e1cilmente el <strong>resaltado de sintaxis<\/strong>, vamos a ver c\u00f3mo<\/p>\n<p><!-- more --><\/p>\n<p>Mediante el comando <strong>:syntax<\/strong> podemos habilitar y deshabilitar f\u00e1cilmente:<\/p>\n<pre>\r\n:syntax on\r\n<\/pre>\n<p>Podemos hacer el cambio permanente, si siempre queremos tener habilitado el resaltado de sintaxis editando el fichero <strong>.vimrc<\/strong><\/p>\n<p>Algunas veces nos podemos encontrar que <strong>no detecta bien el tipo de fichero<\/strong> del que se trata, por lo que mediante <strong>syn<\/strong> podemos definir de que sintaxis se trata, por ejemplo para <strong>shell scripts<\/strong> har\u00edamos:<\/p>\n<pre>\r\n:set syn=sh\r\n<\/pre>\n<p>\tTags: <a href=\"http:\/\/systemadmin.es\/tag\/vi\" title=\"vi\" rel=\"tag\">vi<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>En vi podemos habilitar y deshabilitar f&aacute;cilmente el resaltado de sintaxis, vamos a ver c&oacute;mo Mediante el comando :syntax podemos habilitar y deshabilitar f&aacute;cilmente: :syntax on Podemos hacer el cambio permanente, si siempre queremos tener habilitado el resaltado de sintaxis editando el fichero .vimrc Algunas veces nos podemos encontrar que no detecta bien el tipo [&hellip;]<\/p>\n","protected":false},"author":321,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5046,5047],"tags":[],"class_list":["post-29544","post","type-post","status-publish","format-standard","hentry","category-editores","category-vi"],"_links":{"self":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/29544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/users\/321"}],"replies":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/comments?post=29544"}],"version-history":[{"count":2,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/29544\/revisions"}],"predecessor-version":[{"id":41909,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/29544\/revisions\/41909"}],"wp:attachment":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/media?parent=29544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/categories?post=29544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/tags?post=29544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}