Do not use some features in old Vims as they cause a crash

Fixes #997
Closes #999
Merge pull request #1001 from ZyX-I/workaround-997

Do not use some features in old Vims as they cause a crash