Monday, March 9, 2026

Re: Backup Directory

On So, 08 Mär 2026, Christopher wrote:

> Putting it in quotes, causes vim to fire an error; although nothing is being written ?

... and the error is what? You may want to share what exactly you put
into your .vimrc.

Also please let me remind you of the list etiquette:

> Do not top-post! Type your reply below the text you are replying to.

Thanks,
Chris
--
Substantial penalty for early withdrawal.

--
--
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 vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/aa5whg%2Bbvs9ZQK00%40256bit.org.

Sunday, March 8, 2026

Re: Backup Directory


"After the file has been successfully written and when the 'writebackup' option is on and the 'backup' option is off, the 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=/etc/.backup), otherwise this will be treated as a commented out 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 AM Lang Hurst <grakker@gmail.com> 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 PM UTC-4 Christian Brabandt wrote:
>
> >
> > On So, 08 Mär 2026, Christopher wrote:
> >
> > > "set backupdir=/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 backup
> > 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 vim_use+unsubscribe@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/vim_use/1c807e21-c69b-4b97-bd19-c7f73462a06fn%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 vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/aa4zFaNVJly49DDL%40dominion.lan.

--
--
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 vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CA%2Bek4BF1PP_m3%3DB-jYB84K0wSa8x81SMy%3Dn4HaH3jH%3DQveXQ1g%40mail.gmail.com.

Re: Backup Directory

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 PM UTC-4 Christian Brabandt wrote:
>
> >
> > On So, 08 Mär 2026, Christopher wrote:
> >
> > > "set backupdir=/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 backup
> > 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 vim_use+unsubscribe@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/vim_use/1c807e21-c69b-4b97-bd19-c7f73462a06fn%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 vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/aa4zFaNVJly49DDL%40dominion.lan.

Re: Backup Directory

Putting it in quotes, causes vim to fire an error; although nothing is being written ?

On Sunday, March 8, 2026 at 4:51:37 PM UTC-4 Christian Brabandt wrote:

On So, 08 Mär 2026, Christopher wrote:

> "set backupdir=/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 backup
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 vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/1c807e21-c69b-4b97-bd19-c7f73462a06fn%40googlegroups.com.

Re: Backup Directory

On So, 08 Mär 2026, Christopher wrote:

> "set backupdir=/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 backup
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 vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/aa3g4BbhAhTCIKTp%40256bit.org.

Re: Backup Directory

This is what it states in the documentation

On Sunday, March 8, 2026 at 11:00:41 AM UTC-4 Riza Dindir wrote:
Please check your settings if you have enabled backups (and set the directory (backupdir) correctly. I am not sure, but you might set the permissions in the parent directories too.

Please also read the help files (:help backup). You must set backup and writebackup settings according to your needs. There is a table in the help (:help backup) that will tell you how to set these two settings.

Regards

On Sun, Mar 8, 2026 at 4:00 PM Christopher <crestchr...@gmail.com> wrote:
I understand the permissions issues. How should it backup to begin with, as I mentioned to someone else. I've started Vim and decided to write and then saved with a file name. I then exited Vim and there was no file in the .backup folder ?

On Sunday, March 8, 2026 at 1:00:45 AM UTC-5 jr wrote:
hi,

On Sun, 8 Mar 2026 at 03:28, Riza Dindir <riza....@gmail.com> wrote:
> As Eric Marceau pointed out, the double forward slash (//) in the path ("backupdir"=//etc/.backup) might be a problem.
>
> Also the double quotes in "backupdir"=//etc/.backup might be a problem. I would use "set backupdir=/etc/.backup" (without the double quotes) in the ~/.vimrc file or wherever your rc file is. I have something similar in my settings file: "set bakupdir=/tmp" (without the double quotes).
>
> The other thing might be that you have to create the /etc/.backup directory, and you might need write permissions to that directory. It is odd to use the /etc directory for this IMHO. It might be a good idea to move this to the home folder of your choosing (as Badli al Rashid has suggested). This can be something like ~/tmp/.backup or something else...

just to add, conventionally '/etc' is a system directory and a
non-root user would be permitted to read, not write.

--
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

--
--
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 vim_use+u...@googlegroups.com.

--
--
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 vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/c5d8ba2f-d133-46f9-9d85-40ade78e7d71n%40googlegroups.com.

Re: Backup Directory

"set backupdir=/etc/.backup



On Sunday, March 8, 2026 at 3:15:17 PM UTC-4 Christian Brabandt wrote:
> I tried your suggestion but I don't see any files in the .backup
> folder ?

Let me repeat:

> Please show what exactly you set

Thanks,
Christian
--
James Joyce -- an essentially private man who wished his total
indifference to public notice to be universally recognized.
-- Tom Stoppard

--
--
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 vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/7258275f-f56c-470d-8128-d89d5164cbc0n%40googlegroups.com.