this post was submitted on 03 Sep 2023
738 points (93.0% liked)

linuxmemes

21047 readers
1199 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.

  • Please report posts and comments that break these rules!

    founded 1 year ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] soeren@iusearchlinux.fyi -1 points 1 year ago (2 children)

    Closing nano is more complicated imo

    [–] IjonTichy@lemmy.world 21 points 1 year ago (1 children)

    No it isn't, it respect's ctrl+c, SIGINT and gives useful feedback for new users. Many shortcuts are immediately shown on screen.

    [–] soeren@iusearchlinux.fyi 12 points 1 year ago* (last edited 1 year ago) (1 children)

    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. EDIT: if press ctrl - c vim will show you what you should press instead

    [–] MouseWithBeer@iusearchlinux.fyi 14 points 1 year ago (4 children)

    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.

    [–] unicorn@mander.xyz 17 points 1 year ago (1 children)

    Unless you don't know that ^ means Ctrl 🥲

    [–] MouseWithBeer@iusearchlinux.fyi 11 points 1 year ago (1 children)

    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.

    [–] art@lemmy.world 0 points 1 year ago (1 children)

    Why would you press CTRL+G if you didn't know that ^ was CTRL?

    [–] MouseWithBeer@iusearchlinux.fyi 10 points 1 year ago

    Look at the screenshot I posted, it actually specifies "ctrl + g" for help.

    [–] nxfsi@lemmy.world 9 points 1 year ago

    I'd argue closing vim is still easier. You just have to hold down the power button long enough.

    [–] soeren@iusearchlinux.fyi 4 points 1 year ago

    stop making sense its annoying

    [–] Jeanschyso@lemmy.world 3 points 1 year ago (2 children)

    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.

    [–] DrRatso@lemmy.ml 2 points 1 year ago

    Or you could look on the bar above the shortcuts that explicitly says Ctrl+G = help

    [–] glibg10b@lemmy.ml 2 points 1 year ago

    It's called a caret

    [–] danielton@lemmy.frozeninferno.xyz 2 points 1 year ago (2 children)

    Nano is overrated. I tell everyone who needs to edit from the terminal to use vimtutor. You'll never go back to Nano.

    [–] nameisnotimportant@lemmy.ml 7 points 1 year ago (3 children)

    What's so great on vim for the average Joe which isn't offered by nano?

    [–] Sage1918@lemmy.world 1 points 1 year ago (1 children)
    • 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...

    [–] dustyData@lemmy.world 1 points 1 year ago (1 children)

    Yeah, for all of those things, there's Micro.

    [–] Sage1918@lemmy.world 0 points 1 year ago

    Yes, but the person asked comparing to 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.

    [–] glibg10b@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

    Reaching over to CTRL every time you want to copy some text, delete a word, delete the next character or perform any other basic edit starts to take a toll on your hands after 20 minutes

    [–] Zoidberg@lemm.ee 0 points 1 year ago (1 children)

    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.

    [–] danielton@lemmy.frozeninferno.xyz 0 points 1 year ago (1 children)

    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.

    [–] Zoidberg@lemm.ee 0 points 1 year ago

    I totally agree. The point is that learning the more advanced features will pay off in the future.