This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
which -s vim > /dev/null && VIM=vim | |
which -s gvim > /dev/null && VIM=gvim | |
which -s mvim > /dev/null && VIM=mvim | |
[[ -e /Applications/MacVim.app/Contents/MacOS/Vim ]] && VIM="/Applications/MacVim.app/Contents/MacOS/Vim" | |
[[ -z "${VIM}" ]] && echo "No vim found" && exit 1 | |
# Console vim just gets a straight pass through, as there's no quick way to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'iconv' unless "".respond_to?(:encode) | |
require 'active_support/basic_object' | |
# = EncodeIo | |
# | |
# This is essentially a basic delegation class. The reason it isn't | |
# using the delegate library from stdlib is that FasterCSV has special | |
# casing for io classes. In order to keep using this, we need #kind_of? | |
# and #class to pretend that this is the original class. | |
# |