modify endif and vim version