Re: Backup Directory

Riza Dindir <[email protected]> Mon, 9 Mar 2026 06:20:07 +0300
Newsgroups gmane.editors.vim
Message-ID <CA+ek4BF1PP_m3=B-jYB84K0wSa8x81SMy=n4HaH3jH=QveXQ1g@mail.gmail.com>
--000000000000608704064c8ed4b4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

From the backup help page (
https://vimdoc.sourceforge.net/htmldoc/editing.html#backup)

"After the file has been successfully written and when the 'writebackup'
<https://vimdoc.sourceforge.net/htmldoc/options.html#'writebackup'> option
is on and the 'backup'
<https://vimdoc.sourceforge.net/htmldoc/options.html#'backup'> option is
off, the backup <https://vimdoc.sourceforge.net/htmldoc/editing.html#backup=
>
file is deleted. "

This is the default setting (as indicated in the backup help page). So you
might not see the backup file.

Also as Christian Brabandt wrote, you can not have double quotes around (or
at the beginning) of an option/settings statement (set
backupdir=3D/etc/.backup), otherwise this will be treated as a commented ou=
t
line.

Please share the error messages you get, and your .vimrc file that you are
using.

Regards

On Mon, Mar 9, 2026 at 5:41=E2=80=AFAM Lang Hurst <[email protected]> wrote=
:

> Are you getting backup in your /home/you/vim/backup by default?
> Could you attach your .vimrc?
>
>
> On 26/03/08 02:27PM, Christopher wrote:
> > Putting it in quotes, causes vim to fire an error; although nothing is
> > being written ?
> >
> > On Sunday, March 8, 2026 at 4:51:37=E2=80=AFPM UTC-4 Christian Brabandt=
 wrote:
> >
> > >
> > > On So, 08 M=C3=A4r 2026, Christopher wrote:
> > >
> > > > "set backupdir=3D/etc/.backup
> > >
> > > And you have the double quote at the beginning? That is actually a
> > > comment character. And you most likely do not want your backups to go
> > > into /etc, unless that directory is specifically being set to allow
> you
> > > to write into it. And finally, please I guess you also want :set back=
up
> > > See :h backup-table
> > >
> > >
> > > Thanks,
> > > Christian
> > > --
> > > All my friends and I are crazy. That's the only thing that keeps us
> sane.
> > >
> >
> > --
> > --
> > You received this message from the "vim_use" maillist.
> > Do not top-post! Type your reply below the text you are replying to.
> > For more information, visit http://www.vim.org/maillist.php
> >
> > ---
> > You received this message because you are subscribed to the Google
> Groups "vim_use" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> > To view this discussion visit
> https://groups.google.com/d/msgid/vim_use/1c807e21-c69b-4b97-bd19-c7f7346=
2a06fn%40googlegroups.com
> .
>
>
> --
> When stupidity is considered patriotism, it is unsafe to be intelligent.
>
> -Isaac Asimov
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/vim_use/aa4zFaNVJly49DDL%40dominion.lan=
.
>

--=20
--=20
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---=20
You received this message because you are subscribed to the Google Groups "=
vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CA%=
2Bek4BF1PP_m3%3DB-jYB84K0wSa8x81SMy%3Dn4HaH3jH%3DQveXQ1g%40mail.gmail.com.

--000000000000608704064c8ed4b4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>From the backup help page (<a href=3D"https://vimdoc.=
sourceforge.net/htmldoc/editing.html#backup">https://vimdoc.sourceforge.net=
/htmldoc/editing.html#backup</a>)</div><div><br></div><div>&quot;After the=
=C2=A0file has been successfully written and when the <a href=3D"https://vi=
mdoc.sourceforge.net/htmldoc/options.html#&#39;writebackup&#39;">&#39;write=
backup&#39;</a> option is on and=C2=A0the <a href=3D"https://vimdoc.sourcef=
orge.net/htmldoc/options.html#&#39;backup&#39;">&#39;backup&#39;</a> option=
 is off, the <a href=3D"https://vimdoc.sourceforge.net/htmldoc/editing.html=
#backup">backup</a> file is deleted. &quot;</div><div><br></div><div>This i=
s the default setting (as indicated in the backup help page). So you might =
not see the backup file.</div><div><br></div><div>Also as=C2=A0<span class=
=3D"gmail-im">Christian Brabandt wrote, you can not have double quotes=C2=
=A0around (or at the beginning) of an option/settings statement (</span><sp=
an class=3D"gmail-im">set backupdir=3D/etc/.backup), otherwise this will be=
 treated as a commented out line.</span></div><div><span class=3D"gmail-im"=
><br></span></div><div><span class=3D"gmail-im">Please share the error mess=
ages you get, and your .vimrc file that you are using.</span></div><div><sp=
an class=3D"gmail-im"><br></span></div><div><span class=3D"gmail-im">Regard=
s</span></div></div><br><div class=3D"gmail_quote gmail_quote_container"><d=
iv dir=3D"ltr" class=3D"gmail_attr">On Mon, Mar 9, 2026 at 5:41=E2=80=AFAM =
Lang Hurst &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&g=
t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Are yo=
u getting backup in your /home/you/vim/backup by default?<br>
Could you attach your .vimrc?<br>
<br>
<br>
On 26/03/08 02:27PM, Christopher wrote:<br>
&gt; Putting it in quotes, causes vim to fire an error; although nothing is=
 <br>
&gt; being written ?<br>
&gt; <br>
&gt; On Sunday, March 8, 2026 at 4:51:37=E2=80=AFPM UTC-4 Christian Braband=
t wrote:<br>
&gt; <br>
&gt; &gt;<br>
&gt; &gt; On So, 08 M=C3=A4r 2026, Christopher wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; &quot;set backupdir=3D/etc/.backup<br>
&gt; &gt;<br>
&gt; &gt; And you have the double quote at the beginning? That is actually =
a <br>
&gt; &gt; comment character. And you most likely do not want your backups t=
o go <br>
&gt; &gt; into /etc, unless that directory is specifically being set to all=
ow you <br>
&gt; &gt; to write into it. And finally, please I guess you also want :set =
backup<br>
&gt; &gt; See :h backup-table<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Christian<br>
&gt; &gt; -- <br>
&gt; &gt; All my friends and I are crazy. That&#39;s the only thing that ke=
eps us sane.<br>
&gt; &gt;<br>
&gt; <br>
&gt; -- <br>
&gt; -- <br>
&gt; You received this message from the &quot;vim_use&quot; maillist.<br>
&gt; Do not top-post! Type your reply below the text you are replying to.<b=
r>
&gt; For more information, visit <a href=3D"http://www.vim.org/maillist.php=
" rel=3D"noreferrer" target=3D"_blank">http://www.vim.org/maillist.php</a><=
br>
&gt; <br>
&gt; --- <br>
&gt; You received this message because you are subscribed to the Google Gro=
ups &quot;vim_use&quot; group.<br>
&gt; To unsubscribe from this group and stop receiving emails from it, send=
 an email to <a href=3D"mailto:vim_use%[email protected]" targ=
et=3D"_blank">[email protected]</a>.<br>
&gt; To view this discussion visit <a href=3D"https://groups.google.com/d/m=
sgid/vim_use/1c807e21-c69b-4b97-bd19-c7f73462a06fn%40googlegroups.com" rel=
=3D"noreferrer" target=3D"_blank">https://groups.google.com/d/msgid/vim_use=
/1c807e21-c69b-4b97-bd19-c7f73462a06fn%40googlegroups.com</a>.<br>
<br>
<br>
-- <br>
When stupidity is considered patriotism, it is unsafe to be intelligent.<br=
>
<br>
-Isaac Asimov<br>
<br>
-- <br>
-- <br>
You received this message from the &quot;vim_use&quot; maillist.<br>
Do not top-post! Type your reply below the text you are replying to.<br>
For more information, visit <a href=3D"http://www.vim.org/maillist.php" rel=
=3D"noreferrer" target=3D"_blank">http://www.vim.org/maillist.php</a><br>
<br>
--- <br>
You received this message because you are subscribed to the Google Groups &=
quot;vim_use&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:vim_use%[email protected]" target=3D=
"_blank">[email protected]</a>.<br>
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
vim_use/aa4zFaNVJly49DDL%40dominion.lan" rel=3D"noreferrer" target=3D"_blan=
k">https://groups.google.com/d/msgid/vim_use/aa4zFaNVJly49DDL%40dominion.la=
n</a>.<br>
</blockquote></div>

<p></p>

-- <br />
-- <br />
You received this message from the &quot;vim_use&quot; maillist.<br />
Do not top-post! Type your reply below the text you are replying to.<br />
For more information, visit <a href=3D"http://www.vim.org/maillist.php">htt=
p://www.vim.org/maillist.php</a><br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;vim_use&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">vim_use+uns=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
vim_use/CA%2Bek4BF1PP_m3%3DB-jYB84K0wSa8x81SMy%3Dn4HaH3jH%3DQveXQ1g%40mail.=
gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com=
/d/msgid/vim_use/CA%2Bek4BF1PP_m3%3DB-jYB84K0wSa8x81SMy%3Dn4HaH3jH%3DQveXQ1=
g%40mail.gmail.com</a>.<br />

--000000000000608704064c8ed4b4--