<?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>def Tenako.blog () end &#187; vim</title>
	<atom:link href="http://blog.tenako.com/tag/vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tenako.com</link>
	<description></description>
	<lastBuildDate>Thu, 12 Aug 2010 19:26:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Vim: Ficheros *~</title>
		<link>http://blog.tenako.com/2009/02/20/vim-ficheros/</link>
		<comments>http://blog.tenako.com/2009/02/20/vim-ficheros/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 11:44:19 +0000</pubDate>
		<dc:creator>farruco</dc:creator>
				<category><![CDATA[programacion]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://blog.tenako.com/?p=60</guid>
		<description><![CDATA[Cada vez que edito algún fichero con Vim en mi macbook voy dejando restos en forma de ficheros con terminación ~. Es decir, si edito el fichero foo tras guardar y salir me encuentro que ahora tambiÃ©n tengo el fichero foo~. ¿Soluciones? Varias. De todas formas yo opte por la mas sencilla -aunque menos drástica, [...]]]></description>
			<content:encoded><![CDATA[<p>Cada vez que edito algún fichero con Vim en mi macbook voy dejando restos en forma de ficheros con terminación ~. Es decir, si edito el fichero foo tras guardar y salir me encuentro que ahora tambiÃ©n tengo el fichero foo~.</p>
<p>¿Soluciones? Varias.</p>
<p>De todas formas yo opte por la mas sencilla -aunque menos drástica, deshabilitar la opción escribir ficheros de backup, que no guardar una copia temporal  mientras editamos.</p>
<p>Extracto de la <a title="Vim online documentation" href="http://vimdoc.sourceforge.net/htmldoc/help.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/vimdoc.sourceforge.net');" target="_blank">documentación</a> de <a title="Vim webpage" href="www.vim.org/" target="_blank">Vim</a></p>
<blockquote><p>If you write to an existing file (but do not append) while the &#8216;backup&#8217;,<br />
&#8216;writebackup&#8217; or &#8216;patchmode&#8217; option is on, a backup of the original file is<br />
made.  The file is either copied or renamed (see &#8216;backupcopy&#8217;).  After the<br />
file has been successfully written and when the &#8216;writebackup&#8217; option is on and<br />
the &#8216;backup&#8217; option is off, the backup file is deleted.  When the &#8216;patchmode&#8217;<br />
option is on the backup file may be renamed.</p>
<p>*backup-table*<br />
<strong>&#8216;backup&#8217;  &#8217;writebackup&#8217;	   action</strong><br />
off                off	               no backup made<br />
off	                    on                backup current file, deleted afterwards<br />
on	                    off	               delete old backup, backup current file<br />
on	                    on		               delete old backup, backup current file</p></blockquote>
<p>Es decir, en mi .vimrc tengo las siguientes lineas</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">set</span> nobackup</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">set</span> writebackup</pre></div></div>

<p>Con ello, y atendiendo  a la anterior tabla, se creara un fichero *.swp mientras editamos y este sera borrado al finalizar.Lo cual por lo menos para mi, es suficiente.</p>
<p>Existen otras soluciones, como crear directorios donde almacenar estos ficheros,&#8230; comentadas <a title="Vim tips" href="http://vim.wikia.com/wiki/VimTip20" onclick="javascript:pageTracker._trackPageview('/outbound/article/vim.wikia.com');" target="_blank">aqu<span>í</span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tenako.com/2009/02/20/vim-ficheros/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
