Sublime Text 2 is an awesome text editor available free from – http://www.sublimetext.com/2 . I have been using the editor for almost every text editing purposes (when I am not using an IDE).
(1) First create a symlink to the original sublime text 2 executable:
1 |
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl |
Here, I already had the directory ~/bin created. Please create it yourself. Or you might want to create the symlink in /usr/local/bin or /usr/bin.
(2) To use it as the Unix editor, set this in your ~/.bash_profile
1 |
export EDITOR='subl -w' |