-
Avoiding Scattered Vim Windows in MacVim
Problem: I open too many windows in vim, which get buried in the clutter on my Mac OS X desktop. Solution: Open files in MacVim in an existing window using a tab mvim –remote-tab new_file_to_open.rb Open files in MacVim in an existing window using a split mvim –remote-send “:split `pwd`/new_file_to_open.rb<CR>” I packaged this in a zsh […]
-
What Gets Added When I Require a File in Ruby?
Let’s say you want to know what symbols are added when you require something in ruby. For example, I was curious if I could get a list of symbols that were added when I required ‘english’. I simply used Symbol.all_symbols to save off the old symbol array and the new one and then subtracted the […]