1

How do I exclude swp files from the build process in Middleman?

Adding ignore '*.swp' to the config.rb doesn't work for me.

Kotosif
  • 338
  • 3
  • 12
  • I moved all my .swp files to `~/.swps` so I didn't have to deal with this kind of thing, just one line in my `.vimrc` is ```set dir=~/.swps``` – nzajt Aug 29 '17 at 22:05

1 Answers1

3

Looks like I just needed to use regex

ignore /.*\.swp/ worked which looks for anything containing a .swp at the end.

Kotosif
  • 338
  • 3
  • 12