I’m not a big fan of nano or vi (I do use them in some cases), but with that config, you’ll be able to do this, anywhere in the terminal :
subl foo.js: will open the file in Sublime
subl .: will open the folder in Sublime (with a file explorer on the left)
Follow the steps explained in this link https://gist.github.com/artero/1236170.
Note : I called my shortcut subl, not sublime (like in the example in the link above)