Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to stop VIM from automatically creating a backup for only a specific file?

I have a running todo list I keep on my desktop, and I don't get any use out of the ~todo that constantly appears.

I do, however, wish to keep the backup function for all other files this possible?

share|improve this question
up vote 3 down vote accepted
autocmd BufRead ~/Desktop/todo setl nobackup
share|improve this answer
set backupskip=$HOME/Desktop/todo
share|improve this answer
that, along with variants of $HOME, did not work – espais Sep 27 '11 at 23:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.