[vim] Several small bugfixes

@mightyguava