Fixed capture.vim to fail gracefully with wrong input