5 ms·
Learning a terminal editor will save your ass at 3am when production goes down. No joke.
by vlod 1y ago
Learning a terminal editor will save your ass at 3am when production goes down. No joke.
- nurumaik 1y agoLearning a client-server editor will save your nerves when developing on a remote machine with 200ms ping
- JackYoustra 1y agolearning both is fun!
- opan 1y agoVim and emacs both also support editing remote files.
- nurumaik 1y ago"Support editing remote files" and "work with all plugins on remote that feels like editing on local machine" are different things
- opan 1y agoJust to clarify, for vim I'm talking about the scp:// thing, for emacs there is of course TRAMP. In both cases you're running a local editor and fetching the remote file, then sending it back when making changes. So your plugins and such should work just fine. I am not talking about sshing into the machine and running vim or emacs as a TUI on that remote machine, which is also possible with both editors.
- senko 1y agoLearning and wanting to use as a daily driver are very different things. I use vim on my servers and for writing git commit messages. For everything else, I use another editor (used to be Sublime Text, then Vs code, now Zed).
- kstrauser 1y agoNailed it. I'm fine with using vim to do remote work. I'm not an expert, but I have enough muscle memory to zip through the things I need to do. I don't want to use it exclusively, though. Turns out I'm capable of learning my way around multiple tools and using different ones in different contexts. Who knew?
- TiredOfLife 1y agoThats why nano exists. At 3am i am not in the mood trying to remember where my 714 page how to save a file and exit vim manial is
- vlod 1y agoI seem to hear this a lot, but there's probably like 10 commands (maybe a few more if you want to be fancy with copy-paste). Note: great if you like nano however! For those that are interested, this will get you 90% there: exit without saving> :q! exit with saving> :wq beginning of line> 0 end of line and edit (enter insert mode)> shift-a delete line> dd insert mode> i stop insert mode> ESC undo> u show line numbers> :set number go to line number (e.g line 5)> :5
- adastra22 1y agoIt is easier to remember one command: `nano <file>`
- BomberFish 1y ago+1, nano even gives you a handy hint bar at the bottom in case you forget any of its' shortcuts
- dkersten 1y agoI don’t say I don’t know how to use one. I was a longtime vim and then neovim user. But I don’t want to use one. I still use vim for quick terminal edits, git commit messages, and doing stuff over ssh. But for my day to day heavy text editing, I do not want to sit in a terminal and be limited by what a terminal can display.