• JerkyChew
    link
    fedilink
    92 years ago

    Pssh, come on, it’s just :q or :q! - couldn’t be simpler or more intuitive!

    • glibg10b
      link
      fedilink
      32 years ago

      “vim” isn’t a valid PID. I think you meant killall -9 vim

  • @[email protected]
    link
    fedilink
    162 years ago

    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.

    • @[email protected]
      link
      fedilink
      English
      32 years ago

      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.

    • glibg10b
      link
      fedilink
      9
      edit-2
      2 years ago

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

      • Asuka
        link
        fedilink
        42 years ago

        Because Nano just works. Vim is insane affront to good design and standards.

        • glibg10b
          link
          fedilink
          22 years ago

          I’ve always used the stock configuration and never had issues

      • @[email protected]
        link
        fedilink
        English
        22 years ago

        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
          link
          fedilink
          22 years ago

          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?

          • @[email protected]
            link
            fedilink
            42 years ago

            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.

            • glibg10b
              link
              fedilink
              12 years ago

              @[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?

              • @[email protected]
                link
                fedilink
                22 years ago

                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.

    • @[email protected]
      link
      fedilink
      92 years ago

      WTF. Why? I could maybe see someone preferring emacs over vim, but not nano. Maybe there are nano features I don’t know about, but it just seems like Windows Notepad to me.

      I normally just use VS Code with a VIM extension. Unless I’m ssh-ing into something, then I use vim.

      • Gamey
        link
        fedilink
        52 years ago

        Well, you kind of got it but also didn’t I guess. If I want to quickly edit a none critial config file or similar a terminal version of Notepad is perfectly fine and for more complex stuff I prefer a GUI anyway.

    • Doc Blaze
      link
      fedilink
      2
      edit-2
      2 years ago

      it’s funny because as much as I hate gnome desktop, I feel like gnu really does makes the best Linux software. disks utility, nano editor, I’d even argue gnu paint without the ability to undo is more intuitive and superior to most of the closed source commercial stuff of similar purpose you can find out there.

      actually, some of the best looking desktops I’ve seen are heavily customized versions of gnome (pop os, nobara official) so maybe I’m wrong on that too.

  • glibg10b
    link
    fedilink
    25
    edit-2
    2 years ago
      • Esc × 2
      • CTRL-[ × 2
      • CTRL-\ CTRL-N × 2
      • :q
      • :qa
      • :wq
      • :wq!
      • :wqa
      • :x
      • ZZ
      • :q!
      • ZQ
      • :q!
      • :cq
  • @[email protected]
    link
    fedilink
    English
    422 years ago

    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.

    • ChapolinColoradoNZ
      link
      fedilink
      102 years ago

      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

    • @[email protected]
      link
      fedilink
      English
      72 years ago

      I’m feeling old now… I’ve been using vi for 35y now and was happy when I got vi.exe on a dos box, as I hated edit. I still don’t like ‘simple’ editors like nano/joe.

      I used kill to get out of emacs when trying it agter 7y of vi usage, so I get the need to get mideval on editors users aren’t used off. ;)

      • @[email protected]
        link
        fedilink
        English
        82 years ago

        vi has always been my bane because I’m a sloppy typist. I can’t count the number of files i had to fix because they ended with :q i like nano because the commands are ctrl + whatever. i don’t make a mess.

        • @[email protected]
          link
          fedilink
          English
          22 years ago

          I’m a sloppy typer as well, but somehow I notice my mistakes while I make them and correct them on the go.

          What doesn’t help is that the readout of the keyboard hasn’t changed (got faster) since decades, which sometimes hinders me more then my sloppyness.

    • glibg10b
      link
      fedilink
      52 years ago

      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?

    • @[email protected]
      link
      fedilink
      202 years ago

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

      • Sören
        link
        fedilink
        13
        edit-2
        2 years ago

        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.

        • MouseWithBeer
          link
          fedilink
          English
          112 years ago

          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.

          • @[email protected]
            link
            fedilink
            42 years ago

            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.

            • MouseWithBeer
              link
              fedilink
              English
              112 years ago

              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.

              • arthurpizza
                link
                fedilink
                English
                32 years ago

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

                • MouseWithBeer
                  link
                  fedilink
                  English
                  102 years ago

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

    • @[email protected]
      link
      fedilink
      62 years ago

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

        • @[email protected]
          link
          fedilink
          12 years ago
          • 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…

        • glibg10b
          link
          fedilink
          2
          edit-2
          2 years 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

        • @[email protected]
          link
          fedilink
          22 years ago

          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.

      • @[email protected]
        link
        fedilink
        12 years ago

        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.

        • @[email protected]
          link
          fedilink
          12 years ago

          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.

          • @[email protected]
            link
            fedilink
            12 years ago

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