support older vim versions

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>