First attempt at committing and I got stuck in vim. Function looks ok