Questions tagged [backup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
99 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 ...
3
votes
0answers
724 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 ...
17
votes
2answers
6k 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 ...
0
votes
1answer
896 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?
3
votes
1answer
178 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~...
0
votes
0answers
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 ...
11
votes
2answers
5k 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 ...
5
votes
3answers
230 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 ...
3
votes
2answers
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 ...
3
votes
1answer
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-...
15
votes
2answers
2k 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 ...