10 ms·
It’s kind of weird to NOT know basic vi/vim if you get to a certain point in your career. If you can’t at least open the software, go into insert mode, and save
by SOLAR_FIELDS 7y ago
It’s kind of weird to NOT know basic vi/vim if you get to a certain point in your career. If you can’t at least open the software, go into insert mode, and save/quit, have you ever had to ssh into a remote server and edit a config file before? Only excuse I could think of is if you literally did everything in windows for your entire career.
- npstr 7y agoWhat's wrong with using nano for that?
- MayeulC 7y ago> It's everywhere. It almost litterally is. Even busybox contains a vi clone. While I have encountered more systems without nano nor Emacs than I can remember. Plus, there is no excuse for learning the basic set of commands: i,ESC,x,u, and maybe navigating with the letters (which I'm not proficient at).
- GordonS 7y agoI only have to edit a file on Linux once every couple of months of so - I tired of forgetting how to exit vi (or enter/exit edit mode, save the file... just about anything really), so started installing nano as the first thing I do on any system. Nano is so much more obvious than vi.
- GordonS 7y agoAlso, there's a reason why there are so many "can't quit vi" memes.
- loopbit 7y agoReading the comments about vi... Am I the only one that knows/uses ZZ to save and quit?
- MayeulC 7y agoAs I tend not quit vi that often compared to the time I spend inside, I prefer to use the more explicit version. I have made some mistakes in the past typing `^X-O` in nano instead of `^X-N` because of muscle memory, thereby overwriting a file I didn't want, and I am afraid of repeating this if `ZZ` became part of my muscle memory.
- nemetroid 7y agoMost people can't install arbitrary software on every system they access.
- MayeulC 7y agoThis exactly. I am pretty sure that if you gain [adb] shell access inside of an android recovery partition (as a random example), you have read-only access to the system, with only busybox at your disposal. Thus vi, but no nano.
- saagarjha 7y agovi is enshrined in POSIX; nano isn't.
- leadingthenet 7y agoYeap. Even the hard-core Emacs fanboys at my work know a few basic vi/vim commands. I mean, you're almost certainly going to use it at some point in your career, might as well learn "i -> type something -> :wq" at the very least.
- noir_lord 7y agoBeen using Linux since the 90's and opening, editing and saving is exactly what I know in vi. All that does is remind me that I haven't set nano as the default editor on that box and then I move on.
- izacus 7y agoIs it? There's plenty of amazing engineers and systems architects who develop (gasp!) on Windows and don't even use command line. And many many of those have designed highly reliable systems driving your basic infrastructure, power plants, industrial systems and myriad of other systems. Why on earth is knowing an old editor connected to anything useful you need from a person in a job?
- AdrianB1 7y agoHonestly I don't know a single good Windows guy that don't even use command line, there are basic things like ping, tracert, curl and openssl that you run in a command prompt. This is assuming you can get around using powershell.
- scarface74 7y agoPing and tracert sure. But curl? I’ll use Postman for quick sanity checking and I’ve never had a reason to use OpenSSL