Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 though...is 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .