VIM really slow with long yaml

iterm2, macos, vim

Solution

It has been reported that the vanilla `YAML` syntax file is buggy, cause instability in Vim 7.4.

You can try this vim-yaml file.

Problem

I have a 624 line Yaml file that is completely unusable in vim. Here's is my config: https://github.com/brandonhilkert/dotfiles/blob/master/vim/vimrc If I run "syntax off" if works fine but obviously doesn't highlight. Is there some way to improve this? None of the lines are that long: https://dzwonsemrish7.cloudfront.net/items/00391q2h0T0z0K0o3A1y/Screen%20Shot%202013-12-18%20at%2011.17.48%20AM.png?v=6532af86

Original source