/var/root/.profile
using nano (this is the only editor which works with root for some reason(. Ridiculous, I know))):subl filename
it's trying for a few seconds and then says:~/.profile
instead of /var/root/.profile
).app
file, the command should be:Sublime Text 2.app
, and also note that only double quotes are needed, not double surrounding single.