Skip to content

Instantly share code, notes, and snippets.

@EinLama
Created December 10, 2013 10:37
Show Gist options
  • Save EinLama/7888686 to your computer and use it in GitHub Desktop.
Save EinLama/7888686 to your computer and use it in GitHub Desktop.
This is painfully slow in vim. I am using vim 7.4 with compiled ruby support and the vim-tomorrow-colorscheme. ``:syntax off`` and the performance is as good as you would expect. ``:syntax on`` and it's barely useable. ``set re=1`` as suggested on various SO-posts doesn't help.
def test
dummy = [
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
{ a: 123, b: "hello", c: :whoa, another_key: "i don't know what to say here", even_more: "okay now it gets huge" },
]
end
puts "dummy scroll code goes here"
puts "dummy scroll code goes here"
puts "dummy scroll code goes here"
puts "dummy scroll code goes here"
puts "dummy scroll code goes here"
puts "dummy scroll code goes here"
puts "dummy scroll code goes here"
puts "dummy scroll code goes here"
puts "dummy scroll code goes here"
puts "dummy scroll code goes here"
puts "dummy scroll code goes here"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment