nano crew where you at
Programmer Humor
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
It's hard to hate nano
, but IMHO there also isn't anything to like in particular either. It's basically a TUI notepad. It's there, it lets people edit files... and that's pretty much all there is to it.
You can use nano without having to read anything about nano. That might be the only thing that is better about it than vim, but it's a damn important thing.
I have zero patience when trying to make small adjustments to files, which is what my command line text editor should be for. Nano just has everything at the bottom in case you forget (I do, frequently) so the workflow is ridiculously streamlined for me
Absolutely. It also has whole-line cut/uncut which is a godsend when working with config files
it's basically a TUI notepad. It's there, it does one job and that's all there is to it
That's what the people who like it like about it.
nano is just... There when you need a text editor for something. Simple and purposeful
I like nano because it has worked any time I needed it. I don't dislike nano because I'm not good enough at Linux to have ever run into its limitations
nano gang checking in.
However, I’ve been forced over time to remember “:wq” to get unstuck should vim randomly appear.
when you click enable vim it should just start nano
I hate when I use visudo and it opens in nano and I try to use vi controls
Why would I want to exit vim?
I tmux my vim session so I never have to exit it, I just end the session and NOTHING OF NOTE HAPPENS
It's very easy to terminate vim. I just use the power button.
Uh... so u guys don't change the PC each time that's cool I would definitely try that ...
If anyone needs the command: :q!
If you want the computer to ask if you're sure: :q
If you want to save: :wq
You’re nullifying that safety measure by doing this you know
Some people just want to see the world burning
If you want to save: :wq
Or :x
:wq
will write even if you didn't change anything; :x
won't. (similar to :w
vs :up
)
I don't mean to be all "BuT iT's cLOseD SoURce" but you should give Logseq or Zettlr a try. They're similar WYSIWYG markdown editors, but also FOSS. Zettlr also has vim keys.
Plus Obsidian is horrible at editing tables.
Also not a fan about the closed source thing, but I like about Obsidian that it's all just markdown. If I ever need to ditch it, I can keep and use my existing files as they are.
Would this also be possible with Zettlr or Logseq?
Thanks for the suggestions, I'm actually checking a couple new editors out as i'm looking for an alternative to OneNote. Just started messing with this one, but i'm not sure if i'll settle for it yet.
I mean, it's true.
I've been using linux pretty exclusively at home for almost 25 years now. Program. Script. Work in the shell a lot, and the other day I had to use vim and it took me a while to remember the basic commands. I'm a nano guy :\
Honestly, if you work in a shell a lot, learning vim is a great investment. You're gonna fly through files editing them faster than with any IDE.
I also started off using nano. Have you tried Micro? It's like nano on steroids and with good keybindings
I'm with you on that. VIM is a good example of a tool that the deepness of the tool makes it aggravating to use for the 90% of simple use cases.
Unless you use VIM enough for the shortcuts to be second nature it is faster to install Nano, make the changes, and remove Nano than it is to use VIM.
Big brain time, pkill vim
Vim: Caught deadly signal TERM
Vim: Finished.
Terminated
A lot of my personal dislike for VIM would be done away with if it just had a helpful common keys cheat sheet (basic cursor navigation, edit mode, exit with and without saving, etc) at the bottom of the editor window like Nano does.
You don't change Vim, Vim changes you. https://youtu.be/9n1dtmzqnCU
*edit: shortened and thanks! Did not know and gross..
There's a few different ways to write that command in vim, does it accept all of them?
If you want to learn vim, try the command vimtutor in a terminal
That is just hilarious but also...
I just remembered that Bram Moolenaar, the author of vim has recently died...
He was a real good person. Back when he released his first vim for Amiga Computers I exchanged some emails with him and he handled even my less smart suggestions very professional.
I just take the chance to remind everyone to spend some money for his Uganda Charity.
That is a hilarious, yet useful test.
Tricky question, but I think I have a solution:
:!readlink /proc/$PPID/fd/* | grep "$(dirname %)/.$(basename %).sw" | xargs -I{} rm "{}" ; kill -9 $PPID