add endfor to vim state