Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [backup]

The tag has no usage guidance.

1
vote
1answer
40 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
17 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 ...
0
votes
0answers
36 views

Moving tmp files regardless of current working directory

To stop Vim cluttering documents directories I added this lines to my vimrc: set backupdir=.\_vimtmp set undodir=.\_vimtmp set directory=.\_vimtmp`<br> It works as I want, but not for files I ...
4
votes
2answers
361 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
162 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 ...
2
votes
1answer
631 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
1k 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-...
12
votes
1answer
1k 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 ...