Re: [PATCH v5 04/19] add distclean target and gitignore more

Christoffer Dall
2014-06-14T13:17:17Z

On Thu, Jun 12, 2014 at 12:36:00PM +0200, Paolo Bonzini wrote:
> Il 11/06/2014 16:01, Andrew Jones ha scritto:
> > patches
> > .stgit-*
> > cscope.*
> >+*.swp
> >+/config.mak
> >+/*-run
> >+/test.log
> >+/msr.out
>
> I'd place swp, cscope, stgit and patches file in a global gitignore
> file ("git config --global core.excludesfile /path/to/file") rather
> than polluting each repository. But since you're adding to
> something that already exist (and since I also use vi :)), I'll
> apply this patch and content myself with sharing the git trick I
> have just learnt.
>

You can also add

set directory=~/.vim/swap

to your ~/.vimrc and not have to worry about this in any of your
directories ;)

-Christoffer