<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>matchit &#8211; SMsoft &#8211; informatica e dintorni</title>
	<atom:link href="https://blog.smsoft.it/tag/matchit/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.smsoft.it</link>
	<description>consigli settimanali su MacOS, GNU/Linux ed Open Source</description>
	<lastBuildDate>Tue, 07 Dec 2010 08:46:25 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=92790</generator>
	<item>
		<title>vim: estendere il matching % per HTML, LaTeX, ed altri linguaggi</title>
		<link>https://blog.smsoft.it/2010/12/07/vim-estendere-il-matching-per-html-latex-ed-altri-linguaggi/</link>
					<comments>https://blog.smsoft.it/2010/12/07/vim-estendere-il-matching-per-html-latex-ed-altri-linguaggi/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 Dec 2010 08:46:25 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Html e PHP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[matching]]></category>
		<category><![CDATA[matchit]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>
		<guid isPermaLink="false">http://blog.smsoft.it/?p=966</guid>

					<description><![CDATA[Per creare le mie applicazioni web, mi affido sempre al famoso vim. Chi usa vim come editor per linguaggi di programmazione (dal C al PHP e via dicendo), sicuramente apprezza la funzionalità di matching che può essere avviata con il carattere % (ad esempio ci si posiziona su una parentesi, si preme il tasto % ... <a title="vim: estendere il matching % per HTML, LaTeX, ed altri linguaggi" class="read-more" href="https://blog.smsoft.it/2010/12/07/vim-estendere-il-matching-per-html-latex-ed-altri-linguaggi/" aria-label="Per saperne di più su vim: estendere il matching % per HTML, LaTeX, ed altri linguaggi">Leggi tutto</a>]]></description>
										<content:encoded><![CDATA[<p>Per creare le mie applicazioni web, mi affido sempre al famoso <a href="http://www.vim.org" target="_blank" rel="noopener noreferrer">vim</a>.<br />
Chi usa vim come editor per linguaggi di programmazione (dal C al PHP e via dicendo), sicuramente apprezza la funzionalità di matching che può essere avviata con il carattere <strong>%</strong> (ad esempio ci si posiziona su una parentesi, si preme il tasto % ed automaticamente il cursore si sposta sulla parentesi di apertura/chiusura del blocco).<br />
C&#8217;è una comoda estensione di vim che si chiama <a href="http://www.vim.org/scripts/script.php?script_id=39" target="_blank" rel="noopener noreferrer">matchit</a> che espande tale funzionalità ad altri linguaggi, come HTML, XML, LaTeX, etc.<br />
L&#8217;installazione è molto semplice. Ipotizzando di usare vim 6 o 7, basterà accedere alla cartella personale di vim:</p><pre class="urvanov-syntax-highlighter-plain-tag">cd ~/.vim</pre><p>scaricare l&#8217;ultima versione di matchit:</p><pre class="urvanov-syntax-highlighter-plain-tag">wget http://www.vim.org/scripts/download_script.php?src_id=8196 -O matchit.zip</pre><p>decomprimerla:</p><pre class="urvanov-syntax-highlighter-plain-tag">unzip matchit.zip</pre><p>a questo punto avviare vim con:</p><pre class="urvanov-syntax-highlighter-plain-tag">vi</pre><p>e digitare:</p><pre class="urvanov-syntax-highlighter-plain-tag">:helptags ~/.vim/doc</pre><p>per ricostruire il tag-file.<br />
Infine inserire nel vostro file vimrc:</p><pre class="urvanov-syntax-highlighter-plain-tag">vi ~/.vimrc</pre><p>le seguenti righe:</p><pre class="urvanov-syntax-highlighter-plain-tag">source ~/.vim/plugin/matchit.vim
filetype plugin on</pre><p></p>
<p>A questo punto potete aprire un qualsiasi file html, posizionarvi su un TAG (es <strong>body</strong>) e premendo il tasto <strong>%</strong> verrete automaticamente &#8220;portati&#8221; sul relativo TAG di chiusura (es <strong>/body</strong>)</p>
<p>enjoy</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.smsoft.it/2010/12/07/vim-estendere-il-matching-per-html-latex-ed-altri-linguaggi/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
