Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.