What is this death trap?

https://lemmy.world/post/4364654

What is this death trap? - Lemmy.world

You can :q! any time you want, but you can never leave.
That’s how you learn Linux and Google: how to kill vim? kill -9 vim.
“vim” isn’t a valid PID. I think you meant killall -9 vim
I actually learned how to use vi like 30 years ago and I had all the commands memorized. Then, nano came along. All the commands are at the bottom of the screen to remind you. It was just too tempting to pass up. However, I can’t help but suspect that somewhere out there I might have left a vi session open because maybe I mistyped. I might have accidentally typed ;q! instead of :q! or something.
I get stressed out every time I need to jump into a server and check something and the only editor is vi. If I can I install nano straight away. Btw, :q! does nothing without pressing ESC first! Hehehe
Yeah, that’s part of the joke. I probably didn’t press ESC first. LOL

All the commands are at the bottom of the screen to remind you. It was just too tempting to pass up.

But you already had the Vi commands memorized. Did you forget them in the meantime?

No. I sloppily typed them. Did you see my other comment?
ggVGdwq!
This works everytime, but remember exiting Insert mode with ESCape
And don’t forget :
The cool kids rm -fr /
I love using vim, but I’m not great at it. I’m just happy I completely understood this.
Closing nano is more complicated imo
No it isn’t, it respect’s ctrl+c, SIGINT and gives useful feedback for new users. Many shortcuts are immediately shown on screen.
If you open vim the first thing you will see it’s a text describing how to close it. Not saying other things are easier for a new user but closing is pretty simple.
And the whole time you have nano open it shows you all the shortcuts how to save and close at the bottom, so no, closing nano is not harder.
stop making sense its annoying
I’d argue closing vim is still easier. You just have to hold down the power button long enough.
Unless you don’t know that ^ means Ctrl 🥲

Then you press ctrl+g for help and it tells you:

Shortcuts are written as follows: Control-key sequences are notated with a ‘^’ and can be entered either by using the Ctrl key or pressing the Esc key twice.

:D

Actually TIL about pressing esc twice.

I had to look up the upside down V meant Ctrl, which makes sense to me now that I know, but I had to Google that.
It’s called a caret
Or you could look on the bar above the shortcuts that explicitly says Ctrl+G = help
Nano is overrated. I tell everyone who needs to edit from the terminal to use vimtutor. You’ll never go back to Nano.
What’s so great on vim for the average Joe which isn’t offered by nano?
Vim has things like copy and paste, including being able to highlight text, search and replace, and I find its commands a lot less clunky than Nano’s. I am not a software developer or a sysadmin, just someone who uses Linux for fun. All of this stuff works without having X or Wayland running too.
  • Teleportation: the cursor can be teleport to any line without pressing down key multiple times…

  • Macro: for repeating a sequence of inputs multiple times…

  • Tabs: nano can’t open multiple files at once i believe…

  • Split screen(horizontal and vertical)

  • Themes and plugins

These are a few that comes to mind…

Yeah, for all of those things, there’s Micro.
Yes, but the person asked comparing to nano…
Nano is the MS notepad of Linux. No more, no less. You don’t have the initial cost of learning vim with nano but in the end you’re working more. I really don’t understand how people can be productive without things like complex regexps, global commands, piping from the editor, etc.
Learning the basics of vim makes setting up a Linux system a lot easier. That’s all I’m saying. You don’t need to learn regexes or anything like that.
I totally agree. The point is that learning the more advanced features will pay off in the future.
Ah, “good” old non-funny “can’t exit Vim” “jokes” that never go out of style. Let’s just all agree you should go back to using browser to write your code up to limited size due to JS limitations and leave the rest of us to “suffer” with out archaic tool that does what it’s told without trying to be a smartass.
I don’t think the joke is meant to be an attack on Vim. It’s just making light of a relatable experience
ctrl+z seems to work

Remember to actually kill the process though, since that will only background/suspend it in most cases.

(Be sure to save the file though first, Vim creates a “swap” / recovery file but its best to not rely on that, use fg to re-open, then press escape and type :wq)

Followed by kill %1 to actually kill the process, otherwise your terminal might complain or freeze up when you try to close it
:q does the trick
It’s really easy, just unplug your computer.
Nano is pretty good if you’re in a terminal. Used to use vim for ssh related stuff but since nano added syntax highlights I didn’t go back.
Nano’s only appeal is that is begiinner-friendly, but you already know Vim, so why switch?

Don’t get it neither, vim is hard to start but once you’re a bit familiar with it it’s kind of time saving imo

I’m not even close to master it (just basics editing) and still find it quite better

@glibg10b @GreenMario Why question it? Nano fits their workflow better than vim. Same for me.

Because if there’s something that Nano does better than Vim, I’d love to know what it is so I can make use of it

Nano fits their workflow better than vim. Same for me.

What’s your workflow?

Because if there’s something that Nano does better than Vim, I’d love to know what it is so I can make use of it

What nano does better: being more user friendly and showing you the most common actions in the bottom part of the editor. A tool to do quick edits without needing to learn specific keystrokes for everything you want to do.

@[email protected] already knows Vim, though:

Used to use vim for ssh related stuff

That’s why I asked:

Nano’s only appeal is that it’s beginner-friendly, but you already know Vim, so why switch?

Why would someone switch to a more user-friendly editor when they’re already used to their current editor?

What does user-friendliness have to do with workflow?

I barely know Vim compared to a seasoned programmer. I can open copy save and input mode just fine. All I use it for is fucking with config files and light scripting really.

I did start with vim tho because I didn’t know about nano and when I did it was bare bones. Today it has syntax highlights so that’s a great thing.

I keep vim around though but nano is way better than it was when Ubuntu first came out so shouldn’t be slept on. If you’re gonna do actual programming yes pls use vim I beg you 😂 or better yet an IDE.

Because Nano just works. Vim is insane affront to good design and standards.
I’ve always used the stock configuration and never had issues
Micro exists. It’s Nano with Lua plugins. Very robust and minimalist. No magic incantations. I actually use it to code simple stuff that I just don’t want to wait a minute for VSCode to spin its wheels.
Learn VIM while playing a game - VIM Adventures

VIM Adventures is an online game based on VIM's keyboard shortcuts. It's the "Zelda meets text editing" game. So come have some fun and learn some VIM!

vimtutor
or if you are rich there this game
Learn VIM while playing a game - VIM Adventures

VIM Adventures is an online game based on VIM's keyboard shortcuts. It's the "Zelda meets text editing" game. So come have some fun and learn some VIM!