Sublimetext2 is a very nice editor. In MacOSX you can launch it via terminal. First symlink sublime text application. Use the following command to do so.
> ln -s /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
Now you can launch sublime text2 via…
> sublime [filename]
In terminal if you want to create a file. Something which mac doesnt have “create file”. Do the following
> touch [filename]
This should help.