5 ms·
Ok, but what if your colleague does not have Vim installed? Wouldn't it make more sense to have a tool that brings files over to the local computer, starts Vim
by amelius 11mo ago
Ok, but what if your colleague does not have Vim installed?
Wouldn't it make more sense to have a tool that brings files over to the local computer, starts Vim on them, and then copies them back?
- Joker_vD 11mo agoThat starts to sound like using VS Code in remote mode.
- exe34 11mo agoEmacs in tramp mode.
- QuinnyPig 11mo agoI can’t recall encountering a system in the last 15 years that didn’t have vim (or at least vi for esoteric things) on it.
- deleted 11mo ago[deleted]
- SoftTalker 11mo agoWould not be uncommon in a container or purpose-built VM.
- godelski 11mo agoHave you run into that? I can't recall ever facing that issue. Seems very weird to strip down that much and then use a different editor. Do you remember if ed was missing in those machines?
- SoftTalker 11mo agoYes I've run into containers where every utility that wasn't needed to run the service was stripped out. Even tools such as "less."
- godelski 11mo agoSo what was the editor?
- bartvk 11mo ago> Do you remember if ed was missing in those machines I had to laugh out loud. I couldn't imagine such a system, that wouldn't be POSIX compliant. So I looked it up, and indeed, it's entirely possible. Debian doesn't necessarily include it. https://unix.stackexchange.com/a/609067 https://unix.stackexchange.com/a/609067
- godelski 11mo agoWhile not mandatory, vi is part of the POSIX commands. I mean you could use ed or even hack your way with awk, sed, and/or grep but no one wants to deal with that bullshit. And if you're installing vi you might as well install vim, right? I've been on a lot of systems and can't remember a single instance of not having vi (though I do vim). So pretty rare, like you said https://en.wikipedia.org/wiki/List_of_POSIX_commands https://en.wikipedia.org/wiki/List_of_POSIX_commands
- sdovan1 11mo agoWe usually work on the VM with daily-built ISO. For example, I would compile and upload Java program to the frontend team member's VM, and type "srt" for "systemctl restart tomcat."