Taken from dotphiles/dotvim on github