Skip to content

Filler

How can a crappy site with boring games waste more space?

Tag: vim

Posted on February 27, 2014February 28, 2014

Tired of old-style Ruby hashes? Use vim?

Here ya go:

:%s/:\(\w\+\) => /\1: /g

You can also do cool stuff to run this across all buffers, tabs, etc. via something like this:

:tabdo %s/:\(\w\+\) => /\1: /g

Continue reading “Tired of old-style Ruby hashes? Use vim?”

Recent Posts

  • I’m not dead! Sadly, neither is Rails…
  • Ruby code is beautiful code, not like that ugly Go nonsense
  • Another reason I hate Ruby
  • One technology to rule them all
  • Go’s success with the “gofmt” tool

Nerdy Links!

  • Back to my super cool games!
  • Eugene, Oregon Children's Photography

Categories

  • Bad Programmer! (26)
  • Bloodsport Coliseum (7)
  • Flash (1)
  • Games (7)
  • Movies (3)
  • Opinions (72)
  • Piracy (6)
  • Programming (55)
  • Random Shit (30)
  • Ruby on Rails (14)
  • Security (11)
  • Site News (2)
  • Uncategorized (1)
  • Why? (1)

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Proudly powered by WordPress