• bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      0
      ·
      16 days ago

      A text editor that doesn’t assume that the keys on my keyboard are in the same order as yours.

      • Telorand@reddthat.com
        link
        fedilink
        arrow-up
        0
        ·
        16 days ago

        I remember looking up how to use Colemak with vim, and the advice was:

        • Change the mappings so the position is the same, but it has the downside that every tutorial won’t match.
        • Keep the mappings and do awkward stretches for common functions like up and down.

        So I just gave up and moved on.

    • SirEDCaLot@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      16 days ago

      A text editor that doesn’t need a tutor because the interface is intuitive enough that someone who has been using text editors (as a concept) for years can more or less instantly pick it up and start working without needing a tutorial to simply edit a config file.

      • KillingTimeItself@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        16 days ago

        a text editor that has a tutor because it’s been around for so long and it’s had so many years to establish itself with an outside control interface that’s quite literally about as optimal as it can be. Vim basically allows you to never move your hands away from the homerow keys, even when navigating and doing bulk edits. The sheer amount of gained speed and productivity you get from this combined with the amount of times you’ll have to deal with text editing throughout your life is probably going to outweight any potential learned annoyances.

    • Luccus@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      16 days ago

      it even has a tutor

      Yeah, people are just lazy. I remember when I invented a new login screen and was told it was “difficult”, “confusing” and “took some getting used to”.

      It even came with a free 100-page manual and a 4-hour master class. Some people, I tell you!

      ^This is meant more as a joke than an actual critique, even if it kind of reflects my thoughts. But ultimatly, I thought it was a funny bit.^

    • soul@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      16 days ago

      One that’s intuitive and doesn’t require a cheat sheet or what I like to call fingular contortionism discovery.

    • rhys@lemmy.rhys.wtf
      link
      fedilink
      English
      arrow-up
      0
      ·
      17 days ago

      Uh, just trying non-modal vim for the first time and… how do I quit it? I can’t :q.

        • MyNameIsRichard@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          17 days ago

          I’ve never tried modal vim because I’ve only just heard about it. The next thing I’d try is restarting the computer. Or Ctrl + Q whichever’s easier.

  • m4m4m4m4@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    The problem I had with nano is that, for the time being, it was supposed to be easy to use. With that in account I always get lost when saving a file and closing the thing because one’s used to doing something else with Ctrl+O and Ctrl+X.

    Whereas with Vim (and Neovim for a little while, and now with Vis) I knew it had a steep learning curve from the start so I always had it in mind. And all the funny stories about quitting vim.

    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      they’ve changed those bindings now, Ctrl+S, Ctl+V, and Ctrl+C all do what you think they do

        • tetris11@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          17 days ago
          • nano

            • Ctrl-Q search backwards
            • Ctrl-S and Ctrl-X is save file
            • Ctrl-V is scroll down
            • Ctrl-C is cancel or info
          • nano --modernbindings

            • Ctrl-Q quits
            • Ctrl-S is save file
            • Ctrl-X is cut
            • Ctrl-C is copy
            • Ctrl-V is paste
      • m4m4m4m4@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        17 days ago

        Great, now the next time I use nano I surely will forget about this and get frustrated when trying to save a file with Ctrl+O

        • tetris11@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          17 days ago

          you still can, but I think Ubuntu and other prepacked distros will switch soon to the better bindings

          • socsa@piefed.social
            link
            fedilink
            English
            arrow-up
            0
            ·
            17 days ago

            Great so now I will mangle all my merge commits depending on which version the host is using.

  • GustavoM@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    17 days ago

    Nano is my “daily drive”, but I’d use vim as well – takes a couple seconds to search for “how to type in linux vim” and “how to save a file in linux vim” anyways. :^)

      • theshatterstone54@feddit.uk
        link
        fedilink
        arrow-up
        0
        ·
        16 days ago

        Not even Basic Command-Count-motion like c3w aka change 3 words after cursor, or d3b delete 3 words before the cursor?

        To that, you add the D aka delete command C for change Y for yank (copy)

        So yy to yank line, or dd to delete line.

        Also p for paste

        Also, i sends you before the cursor, a sends you after. Capital I is insert at beginning of line, Capital A is insert at end of line (append).

        I terms of motions and moving around, you need: hjkl, C-d and C-u (half page jumps down and up), and within the line: 0 or ^ for beginning of line, $ for end (taken from regex), w for moving by word forwards, b for moving by word backwards. That’s pretty much all you need imo. There is also t and f. Where t goes forwards (think 'till aka until). Like dtc delete until the c character. F is the same but goes backwards in the line rather than forwards. Remember you can use these with xommands, so d$ deletes until the end of the line. Or “dt.” deletes till the “.” so… yeahI know there’s more, but that’s all you need for Normal and Insert mode imo.

        For Visual mode, you only need to know how the Visual modes work. Visual (v), Visual Line (Shift-v) and Visual Block (Ctrl-V).

        Also, for visual mode, it might be helpful to learn how to use V-Block to comment out multiple lines at once. Can’t be bothered to go into it.

        But I’d argue that’s all there is to learn about vim keys in terms of getting work done.

        • Rekhyt@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          16 days ago

          Not gonna lie, once you’re getting past single button combos, I’m mentally checking out. Ctrl+K and Ctrl+U in nano are good enough for me, and if I need to do something more complex like actual coding, I’ll use an editor with a full GUI as well.

          • theshatterstone54@feddit.uk
            link
            fedilink
            arrow-up
            0
            ·
            16 days ago

            Fair enough. I basically gave you a large chunk of vim so it will feel super overwhelming. The trick is to do one command or combo at a time. For example, I started with dd. Then I added yanking. Then I added visual mode. Then I added “o” (which I think I forgot to mention: o creates a newline under the current one and puts you in insert mode. Capital O does the same but above the current line). The real trick is going little by little. And to be honest, there are some commands I still rarely use or forget to mention. I’ve never used f instead of t. And in terms of forgetting to mention, there’s the x command which deletes the single character under the cursor rn.

            Also, I’m sure someone will find this list helpful, so on top of this, I’ll also add this video (and hope that Piped bot will appear): https://www.youtube.com/watch?v=RSlrxE21l_k

            It contains some things I haven’t mentioned.

            As for learning all this, I’m repeating myself for the third time. Do it little by little. And when a command is already a thing you do almost without thinking about it, you’re ready to add more.

            I’m mentally checking out

            Why? dw is delete word, c5b change 5 words backwards, and those are the most complicated commands you’ll ever get to use, unless you start adding cuatom keybinds.

            But I digress. If you don’t want to learn it, it’s fine.

  • jaybone@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    You noobs. I just use combinations of cat piped to sed to edit my files, which are mainly lisp code.

  • bluewing@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    Emacs users laughing at VIM users.

    Emacs - A pretty good OS you can use as a text editor.

  • RedWeasel@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    17 days ago

    Worst is when installing a new distro(usually in a vm ) and it defaults to nano and for some weird reason no vi of any sort is installed. I hated nano. Last time I intentionally used something like nano was the 90s with pine I think.

  • ramble81@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    I’ve come to the conclusion, people who use vim just continue to do so out of a stubborn sense of pride for finally learning the key combinations.

      • Treachery4524@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        17 days ago

        Can you use a mouse in nano? I always just use the arrow keys, or page up/down and home/end

        I mostly use vim but I barely use the jkl; to navigate the document.

        • TheHarpyEagle@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          17 days ago

          Ah sorry, I meant using Vim in a GUI program. I wanted something with the flexibility of a mouse (quick navigation, context menu actions, etc.) without using a mouse. Using just the arrow keys, shift highlighting, etc. is just too slow when writing lots of text, and it doesn’t follow the natural position of typing.

    • pixelscript@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      17 days ago

      I mean, yeah, kind of. In the same way pilots fly planes out of a stubborn sense of pride for knowing what all the flight deck controls do.

    • TheV2@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      16 days ago

      There is no sense of pride. Every text/code editor has key combinations that many users will learn eventually. Vim has easier key bindings.

    • PlexSheep@infosec.pub
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      What do you mean? The vim users know their key combinations pretty well, that’s kind of the point of vim.

    • Semi-Hemi-Lemmygod@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      17 days ago

      It’s not pride, it’s just that I know how to use it really well and that makes it easy for me to use.

      But it’s really only for viewing files on another system over SSH. For local work I use Sublime Text

    • techwizrd@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      I am faster, more comfortable, and more productive in Vim. I use the same keybindings in all my editors and IDEs. It’s okay for people to have different preferences.

    • catshit_dogfart@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      I just use vi

      Is that stupid? It’s all I ever bothered to learn, hasn’t failed me yet. Now I’m not some big time linux guru but I’m a sysadmin and regularly find myself elbow deep in a CLI for stuff.

    • JustAnotherKay@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      In my case it’s not a sense of pride. I can’t use anything other than Vim because I keep accidentally putting random incantations into my word documents.

      “There once was a dduuuZQ:q!”

        • JustAnotherKay@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          17 days ago

          Ya know, I might throw that on to my browser but I doubt I’d actually use it much. I only really use my browser for research; notes, music, and most of my work is done in the terminal. Being able to swap tabs faster by not having to cycle could be useful, but other than that I find the mouse to be a pretty rapid way of navigating unfamiliar pages

          • lemmesay@discuss.tchncs.de
            link
            fedilink
            arrow-up
            0
            ·
            17 days ago

            in my case, my hand hurts if I use mouse(or a mobile phone) for some time. using j/k for scrolling and clicking links via f help me a lot.

        • PlexSheep@infosec.pub
          link
          fedilink
          arrow-up
          0
          ·
          17 days ago

          That extension is actually pretty cool. There is also tridactyl and a browser that was made with vim in mind, but a browser and a text editor are too different for many things to translate.

    • hakunawazo@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      It’s just convenient that it’s pre-installed on many servers.
      So I can use it now everywhere with my stubborn sense of pride for finally learning the key combinations.