performance fixes for vim