What's the best way to set up a text editor to be able to work with files on a remote Linux VM from a Mac over SSH?
I know Sublime has all the nice RSub shit but Sublime's code completion functionality is trash, their extension system sucks and they're WinRAR-tier with pestering you to buy a license.
I'm using pic related right now and its OK. It's really fast and responsive but I still have to manually connect to the VM and run rmate on there every time I want to open a file. It also doesn't work with anything that isn't text or source code files even though VSCode supports shit like opening images.
inb4 it's a trash setup. I know it is. It's how we have to do it. How do I make it less shit?
what's the problem with using a terminal text editor?
Samuel Edwards
this, learn vi(m) user-kun. it's very useful, it'll be on every linux distro.
Joshua Harris
Emacs
Isaiah Walker
Nano
Jose Edwards
Why though? Just work in git.
Jaxon Carter
Visual Studio Live Share would work for zoomers like you.
Zachary Davis
just use vim
Hudson Sullivan
sshfs, don't know about osxfuse though.
Hudson Gomez
vim + tmux
Aaron Barnes
some (all?) jetbrains products can do remote editing, with proper autocomplete and stuff. recommended if you've got a decent server on the other end.
Michael Price
I am on windows, what is the best terminal to use for ssh vim/tmux sessions? It seems like conemu has an issue with tmux. If I open multiple panes the content of one pane will render across the whole terminal window.
Caleb Mitchell
conemu has always been kind of buggy for me, ctrl-c never works right and sometimes it hangs after closing a terminal. I don't blame the developers though, it's probably because MS doesn't make it easy for that shit to work
what's wrong with the built-in windows cmd console? with git bash it's fine
Joshua Lewis
Did you tried windows' built in ssh?
Jacob Carter
cmd.exe or powershell one?
I havn't really tried those. Will give it a shot. I also tried alacritty recently, however it seems the status bar at the bottom doesn't always render correctly. (eg. if you press 'd', it will show you in the bottom right you are busy with the command)
Yeh, I am using that.
I ssh into a debian vm, would the env variables make a difference?
Isaiah Gutierrez
git bash in cmd.exe ... (or whatever it is that installs with git, when you say to add a context menu entry for "git bash here")
but I never use anything fancier than vim so I don't know if it's going to behave properly.
Colton Taylor
I will give it a shot
Charles King
Emacs in tramp mode
Henry Roberts
Learn vi(m) and you'll never go back. I'm using cygwin with its default terminal emulator - mintty, iirc. That's win7 though, just use wsl with default terminal if you're on 10. There's also putty, but I've never tried it.
Hunter Myers
I dont care how fancy it is. I just want it to work with ssh/tmux/vim.
Colton Wright
So i see alacritty can either use WinPTY or ConPTY (experimental) does mintty use something else? Or is it just a better wrapper for it?
Parker Murphy
Install an SFTP program, mount the folder via SFTP, use whatever fukn editor you want. (SFTP is ssh.)
Owen Flores
Mintty is for cygwin, msys/2 and wsl.
Anthony Collins
I just tried it. (using git-bash then ssh). Just using vim doesnt work. When I 'dd' the buffer doesnt get updated, if i scroll down the file and back up the line is removed. When I tmux/vim you get that weird 1 second delay when exiting insert mode (pressing esc).
Evan Scott
did you choose the built-in console or mintty?
Juan Brooks
This was using cmd.exe, and then calling win-git's bash
Emacs with tramp allows seamless editing over ssh. You can even browse files using dired, or swawn a shell.
Owen Green
Running a local vim isn't a problem, I am having issues running vim over ssh (with or without) tmux.
Sebastian Taylor
O I C what's wrong with putty? that was the gold standard for years
Nolan Ross
ok. I think the git for windows's bash works
Luis Evans
Ok. It seems fine now. The only last thing that is quite annoying is that (over ssh) in tmux, in vim, when I press esc it takes a second to exit insert mode. This is not an issue without tmux. Just normal ssh then vim and everything is fine.
Fuck off, what you mean is learn vim install a shit load of plugins so it behaves like a ide and then jack yourself off on the internet about it. OP, mount the fucking drive on your system using sshfs and use a real ide like man who has hair on his testicles. Don't listen to these idiots.
I do use IDE when I need to, with vim plugin, obviously, but vim is objectively the best way to edit files on remote machine. Besides, if you're working with a project that has codebase big enough to require the use of IDE, why the fuck would you use something like sshfs instead of git? Don't be angry that you couldn't learn superior way of editing text.
Jonathan Sanchez
:set nocompatible
By default Vim emulates Vi, which has funky updating etc.