poetic/dotfiles — pull request #3 by Chun-Yang (2014-08-13 01:31:06+00:00)
Title: speed vim up when editing ruby files by changing regex engine

Vim sometimes get very slow when we try to edit a big (~500 lines) ruby file. This is due to the regex matching of the syntax highlighting.
Solutions:
1. We can speed it up by using an old version of regex engine.
2. We can further speed it up by disable some rarely used syntax highlighting by comment the following lines in vim//bundle/vim-ruby/syntax/ruby.vim:
" syn match rubySymbol "\%([{(,]\_s*\)\@<=\l\w*[!?]\=::\@!"he=e-1
" syn match rubySymbol "[]})\"':]\@\%(\s*(\)\@!"
" syn match rubyPredefinedConstant "\%(\%(^\|[^.]\)\.\s*\)\@\%(\s*(\)\@!"