3 ms·
One of the reasons I still use both Emacs and Vim (yes I strangely use both) is because I can go execute them on a terminal (terminal, tmux, screen, etc). Ther
by agentgt 9y ago
One of the reasons I still use both Emacs and Vim (yes I strangely use both) is because I can go execute them on a terminal (terminal, tmux, screen, etc).
There are just so many times I need to SSH into a machine. I know Emacs has some remote file editing capabilities but for some reason I never liked it (I can't recall why now... I think it was the need to sudo).
So I'm wondering what sublime text fans do for remote editing?
- Jemaclus 9y agoI use vim on remote machines. I don't like it, but it does the job.
- ricardobeat 9y agoOpen a terminal in another window. Moom/Magnet can handle automatic tiling on MacOS.
- agentgt 9y agoI'll have to try Moom. Right now I use SizeUp which isn't really a tiling manager but does provide some similar features. I use the tmux iterm integration which I must say is pretty badass. The iterm folks did a good job on that.
- agladlad 9y agoI'm fairly happy with the sshfs implementation provided by the FUSE project: https://github.com/osxfuse/sshfs/releases https://github.com/osxfuse/sshfs/releases Once you set some flags like sshfs -o auto_cache,reconnect,defer_permissions,negative_vncache,noappledouble user@host:/ /path/to/local/ it's pretty robust. I can then edit files remotely but still use Sublime Text :)
- geerlingguy 9y agoMost things are in git so work is local; for servers where I have ssh/sftp access I use Transmit to locally edit files using Sublime. It's usually seamless, unless you switch network connections in the middle of a save. But a lot of the time, I am running vim on the remote server... no simple substitute unless you install some sort of channel to be able to edit locally, or have it available via SFTP (especially with sudo, that's often not possible).
- daveFNbuck 9y agoSame solution as you, I use different editors in different contexts. You use Emacs and Vim, I use Sublime and Vim. I also edit locally and push my git branch to the remote server to test/run the code. I do that for most bigger changes and use vim to do smaller debugging changes. Some people use plugins to edit code over a tunnel using sftp. One of my coworkers edits locally and has aliases to rsync and run his code on the remote machine.
- jefurii 9y ago> I know Emacs has some remote file editing capabilities but for some reason I never liked it (I can't recall why now... I think it was the need to sudo). Tramp (https://www.gnu.org/software/tramp/tramp-emacs.html https://www.gnu.org/software/tramp/tramp-emacs.html) enables seamless remote editing over ssh/scp. By default it asks for your password all the time but you can cache that. Add to your ~/.emacs (require 'tramp) (setq tramp-default-method "scp") (setq password-cache-expiry 1800)
- Rondom 9y agoYou probably should use public key authentication and ssh-agent.
- knodi123 9y agoI was involuntarily forced to get the hang of vim back in my youth, and once I got over the learning curve, it's been an indispensable part of my toolkit. I waffle back and forth between sublime3, and tmux+vim, depending on how much I'm working locally vs. remotely
- jeremejevs 9y agohttps://github.com/henrikpersson/rsub https://github.com/henrikpersson/rsub