<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="/xml/xslt/faq.xsl" ?>
<root domanda="Come usare Vim a colori nel Terminal di OS X?" lastedit="1139847562" lastupdate="1139847562" number="80" owner="manna" type="faq">
  <args>
    <arrayitem value="osx" />
    <arrayitem value="tecno" />
    <arrayitem value="utils" />
  </args>
  <risposta>&lt;!-- Tnx to RiK0 e Gomi No Sensei --&gt;

&lt;p&gt;Innanzitutto occorre che sia presente l'editor di testo &lt;b&gt;Vim&lt;/b&gt;, questo è presente su Mac OS 10.3 (Panther), mentre per chi usa un OS X precedente andrà scaricato via &lt;a href=&quot;http://fink.sourceforge.net/&quot; target=&quot;_blank&quot;&gt;fink&lt;/a&gt; o da &lt;a href=&quot;http://macosx.forked.net/&quot; target=&quot;_blank&quot;&gt;forked&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Quindi occorre editare il file &lt;b&gt;.vimrc&lt;/b&gt; o crearne uno nuovo.&lt;br&gt;
Occorre che siano presenti le seguenti righe:

&lt;blockquote&gt;
set term=xterm-color&lt;br&gt;
&quot; Switch syntax highlighting on, when the terminal has colors&lt;br&gt;
&quot; Also switch on highlighting the last used search pattern.&lt;br&gt;
if &amp;t_Co &amp;gt; 2 || has(&quot;gui_running&quot;)&lt;br&gt;
&amp;nbsp;syntax on&lt;br&gt;
&amp;nbsp;set hlsearch&lt;br&gt;
endif
&lt;/blockquote&gt;&lt;/p&gt;

&lt;p&gt;Le righe precedute dagli apici doppi sono di commento, consiglio di lasciarle per ricordare a cosa servano quelle seguenti.&lt;/p&gt;</risposta>
</root>
