I have to look this up every time I need to do it, so I’m posting this for myself. (Of course, it would be better to keep track of my .vimrc so I wouldn’t have to do it from scratch!)
Add to your .vimrc:
let mapleader = <space> (or whatever key you want)