Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [backup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
128 views

Why does Vim write backups when it does?

At seemingly random moments, Vim litters my working directory with backup files like foo.bak, despite that nobackup is set. Note that Vim does not litter with foo~ (as it would if backup were set), ...
user avatar
  • 101
0 votes
1 answer
105 views

Why are empty files with names as 4 digits being generated by VIM?

I've been using VIM on a virtual machine running Kali Linux to write python scripts on a shared folder on my Windows 10 host operating system, but these empty files with names as 4 digits keep being ...
user avatar
  • 1
3 votes
0 answers
1k views

Error when w!riting a file "Can't delete backup file"

I'm having a problem when writing to a file created by another user. When I try to do :w I get the error message E506: Can't write to backup file (add ! to override) and when I do :w! the file get's ...
user avatar
  • 103
19 votes
2 answers
8k views

How do I disable vim from producing backup files?

How do I disable vim from producing backup files? Like file~ do not generate. Should I do that by modifying /etc/vimrc? I added set nobackup to /etc/vimrc, but when I looked at the distributed file ...
user avatar
  • 193
1 vote
1 answer
1k views

Auto-Deleting Swaps, Backups and Undos while Quitting vim?

Cluttering Swaps and Backups that I never use are so annoying and takes up unnecessary space. Is there a way to delete them as one quits vim with :q and similar quitting commands?
user avatar
  • 211
3 votes
1 answer
191 views

How can I make backup files start with a dot to make them hidden? (not just tilde)

By default, vim seems to save a backup file ending in a tilde (see :help backup). For example, when editing foobar.txt, a backup file foobar.txt~ is saved. I would like to have it saved to .foobar.txt~...
user avatar
  • 1,664
0 votes
0 answers
31 views

Are there already a series of switches/commands/aliases to initiate vim and auto backup to new file when writing out

...with confirmation that is somewhat similar to the "you are in RO mode" that you get as a layer of security if you run the command as view. I want a single command [that I may alias to something ...
user avatar
  • 1
12 votes
2 answers
6k views

What does `nowritebackup` actually do?

I hear somewhere that if backup is disabled and writebackup is enabled, Vim will create backup files for the duration of the edit session and will delete these backup files afterward. However, even ...
user avatar
5 votes
3 answers
246 views

Make backup only once per session, when I close a file

Using the backup option, I'd like vim to keep the backup of a file until that file is closed, instead of overwriting the backup every time the file is saved. I want Vim to do that because I often ...
user avatar
3 votes
2 answers
2k views

set backupcopy=yes doesn't still writes the file twice

I'm trying to understand and eventually fix the following behavior: when I save a file using VIM, it triggers the change/write event twice. I'm using Ubuntu 16.10, and I created an empty .vimrc file ...
user avatar
3 votes
1 answer
2k views

Vim Windows creating temporary files [duplicate]

I am using Vim on windows. Any time I edited a file, Vim is created temporary files. When I created a file, mysql-build-properties.xml Vim is creating files like these: mysql-build-...
user avatar
  • 183
15 votes
2 answers
3k views

Does Vim autosave?

From :help swap-file: Updating the swapfile The swap file is updated after typing 200 characters or when you have not typed anything for four seconds. This only happens if the buffer was ...
user avatar