Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My favorite feature (already added in an earlier development release, but now finally in the beta track): On OSX, if you are editing a file you don't have write access to and you want to save it, Sublime now asks for authentication than then saves the file.

This is very convenient and not having this was the reason for still having TextMate around.



Is there any way to do the same in Vim?


  :w !sudo tee %


And here's the little mode-specific map I use:

cmap w!! w !sudo tee % >/dev/null


That's one annoyance out of the way. Is there a decent way to work with remote files yet?

This is always the killer for me.


On OS X, I highly recommend Dripbox. It automatically SCP's files that change on your local filesystem to a remote location.

https://github.com/epall/dripbox

I use it every day, editing files locally in Sublime Text 2, and then cmd-tabbing to Terminal to run tests. It's fast enough that I never even think about the delay.


Try this out: http://wbond.net/sublime_packages/sftp I haven't used it, but I'll probably end up taking a look at it soon. Please report back if you end up using it.


Been using this package for some time now and can say that it's been great. It's super-fast, and is integral to my work flow.


OK, this isn't "decent". But: On a Mac, with a good connection to the remote machine, I've found the combination of

- ExpanDrive, which uses MacFUSE to mount remote volumes over SSH, but with lots of metadata caching smarts to make it fast and reliable

- My hacky remote textmate script, which gives you a "mate" command on the remote machine via ssh tunneling (https://github.com/jaylevitt/textmate_remote)

to work well with TextMate. I've been meaning to try it on ST2 but haven't yet; as long as ST2 doesn't do the horrible thing TextMate used to do and continuously rescan the project directory in a blocking thread, you'll be cool.


TextMate 2 has `rmate` which lets you edit a remote file from a terminal session: http://blog.macromates.com/2011/mate-and-rmate/


I just use Transmit to mount remote file systems. Works like a charm.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: