Emulating the "Duplicate Line" functionality from TextMate