> Tom Purl wrote: >>>>> I would like to force Vim to not make backups of files in my wiki >>>>> folder, >>>>> but still create backups for all of my other docs. I therefore tried >>>>> the >>>>> following command in my _vimrc: >>>>> >>>>> set backupskip=$HOME/gtd/wiki/* >>>>> >>>>> This, however, didn't work. I also tried quoting the path, using a >>>>> relative path, etc. I read the autocmd-patterns help, and followed >>>>> it's >>>>> recommendations, but that still didn't work. >>>>> ... >>>>> Does anyone know what I'm missing here? Is my path incorrect, or am >>>>> I >>>>> using the wrong option to achieve my goal? >> >>>> Once a backup has been created, it won't spontaneously disappear. >>>> Under >>>> Unix, you could try running the following shell command: >>>> >>>> rm -vf ~/gtd/wiki/*~ >>>> ... >>>> Oh, or maybe you could use Vim to expand the wildcards? If >>>> >>>> !dir ~/gtd/wiki/*~ >>>> >>>> shows only the backup files, use >>>> >>>> !del -y ~/gtd/wiki/*~ >>>> >>>> to remove them. >>>> >>>> After that, your 'backupskip' option ought to work. >> >> Thanks for the quick reply AJ! I tried this same configuration on Linux >> just now and got the same results. Here's basically what I did (on both >> Windows and Linux): >> >> 1. I opened my $HOME/gtd/wiki directory within Vim using netrw. >> 2. I deleted the FrontPage~ doc using netrw >> 3. I then opened my FrontPage doc, edited it and saved it. >> 4. I then opened my $HOME/gtd/wiki directory again within Vim using >> netrw. >> >> Unfortunately, the FrontPage~ doc was created again. Here's what's in >> my >> vimrc: >> >> set backupskip="$HOME/gtd/wiki/*" >> >> Is there anything else I could be missing? >> >> Thanks again! >> >> Tom Purl
> Remove the quotes: > > :set backupskip=$HOME/gtd/wiki/* Thanks again Tony, I tried what you suggested, but I'm still getting backups. This is really odd.
