Which text editor do you use?

    • yetAnotherUser@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      ·
      1 个月前

      It has a few quirks I utterly despise :(

      Like it cannot print invisible characters. Had a script create some broken folders with a BOM character at the beginning. I couldn’t access the files in any way except that they appeared in dolphin and ls. Had to delete them via the fucking inode.

      I was forced to use VSCode (an open source fork at least) to find out what the fuck was wrong with the input file the script used to generate the folder name.

      • EnsignWashout@startrek.website
        link
        fedilink
        arrow-up
        6
        ·
        1 个月前

        Like it cannot print invisible characters.

        I was looking at an option to display invisible characters in Kate like last week. So it got better, I guess.

        • yetAnotherUser@discuss.tchncs.de
          link
          fedilink
          arrow-up
          5
          ·
          1 个月前

          Only non-printable spaces from what I can tell.

          The BOM character does not fall into this category and is still invisible. Try pasting it into Kate. It’s between those arrows:

          ---><---
          
          
  • Skullgrid@lemmy.world
    link
    fedilink
    arrow-up
    87
    arrow-down
    2
    ·
    edit-2
    1 个月前

    Me no love nano, me brain only can use nano.

    E macs scary. vim no let me leave :(

    • Cris_Citrus (he/him <3)@piefed.zip
      link
      fedilink
      English
      arrow-up
      17
      ·
      1 个月前

      You might like micro :) its like nano but with more user friendly features like Ctrl+s for save, and clicking places to change cursor location. I think you have to enable the “cheat sheet” of keyboard commands being visible all the time if you want it to always be showing like I do

      It also supports extensions but I don’t really care about that lol. I just want something simple with nice ux :)

      • Techno-rat@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        2
        ·
        27 天前

        p sure latest nano can do all that, you can atleast change the default save bindings to ctrl s in the .nanorc file and im p sure most distros include a build of nano that has mouse support. If its supported by the build, its just a settings toggle in the rc file likr the bindings :)

  • plateee@piefed.social
    link
    fedilink
    English
    arrow-up
    65
    ·
    1 个月前

    vim, because that’s how my father taught me, and how his father’s father taught him.

    Choose vim! The generational trauma of file editors!

    • EnsignWashout@startrek.website
      link
      fedilink
      arrow-up
      5
      ·
      1 个月前

      haha!

      Sometimes I feel like my side of the holy war isn’t engaging in completely good faith.

      I might switch sides to emacs if my fingers were long enough to reach the key combinations.

      Maybe I’ll go try it, anyway!

      What was the command to exit vi, again…?

    • illusionist@lemmy.zip
      link
      fedilink
      arrow-up
      8
      ·
      1 个月前

      I was too untilI switched to opensuse aeon and default is vim instead of nano. I just switched. I don’t care. Both are not perfect - i won’ create yet another fork just because i want to do it differently. I don’t get why vim has so few shortcuts.

        • wheezy@lemmy.ml
          link
          fedilink
          English
          arrow-up
          10
          ·
          1 个月前

          Someone’s gotta do it. I’m leaving this comment so it’s not me.

      • daggermoon@piefed.world
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        1 个月前

        I was playing around with Free BSD I think and the default was Vi. I was just like “yeah, no” and gave up. I didn’t have wi-fi working so I couldn’t install anything else.

  • Digit@lemmy.today
    link
    fedilink
    English
    arrow-up
    33
    ·
    1 个月前

    It’s worse than the picture depicts. It’s not just the lovers, the elitists and the evangelists, it’s the sheer range of choice too, beyond the loudest.

    same cat surrounded by dozens of text editor courgettes that look like snakes

    • barzaria@lemmy.world
      link
      fedilink
      arrow-up
      10
      arrow-down
      2
      ·
      1 个月前

      This command will literally overwrite the file that you do whenever you try to edit it. You need two >> to append at the end of a file, but it’s super-duper hard to put text in the middle of a file from the terminal. That is why people use editors, for sure. Now that I think about it, there probably is some psychopath who uses the actual command line as an editor. They’re probably more elitist than Vim users lol.

  • Allero@lemmy.today
    link
    fedilink
    arrow-up
    25
    arrow-down
    1
    ·
    1 个月前

    First choice: use a normal damn GUI text editor

    Second choice: Nano. It’s simple and comprehensible, and a best CLI choice for newbies. You can then turn to vim, emacs, or whatever, but don’t make your life harder from the get-go

    People suggesting to start with Vim are probably the same ones pushing for Arch as a first distro. C’mon.

    • zerofk@lemmy.zip
      link
      fedilink
      arrow-up
      14
      arrow-down
      2
      ·
      1 个月前

      That’s how you breed scrubs who can’t M-x-butterfly. I say give them a distro that boots into vi and starts a background process that block internet access around them. If they manage to quit vi and kill the daemon, they’re ready for Linux.

  • notabot@piefed.social
    link
    fedilink
    English
    arrow-up
    23
    ·
    1 个月前

    Let the editor holy wars (re)start!

    Vim is the one true editor, and the heretics who claim otherwise shall be driven forth and sent to re-education linux boot camps to learn the true ways.

  • BananaTrifleViolin@piefed.world
    link
    fedilink
    English
    arrow-up
    21
    ·
    1 个月前

    I use Micro in the terminal - it offers good desktop integration with keys similar to DEs like ctrl+v and ctrl+c, rather than being terminal centred (e.g. Ctrl+C is usually the standard interrupt/abort key in the terminal). So it’s nice if you’re mainly in a desktop but pop in to a terminal occasionally and have the DE muscle memory.

    I use Kate outside the terminal.

    But honestly, which text editor you use depends on what you use it for and how often. Vim is very powerful and allows very fast use & productivity if you learn it properly and probably very useful if you spend a lot of time in the terminal or TTY, but Nano is more straight forward and easy for a lot of basic terminal based work.

    • Zikeji@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 个月前

      I’ve been using micro as well recently. But other than that if I’m on a remote server I’ll use whatever it has available, starting with nano then vi/vim.

    • j3tt@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 个月前

      The so-called desktop integration is what I disable in vim. I want to have the terminal in control and use select text to copy instead of entering visual mode. When I want visual mode, I use my keyboard. (:

    • ZoteTheMighty@lemmy.zip
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      1 个月前

      This is my reply every time someone suggests nvim. Is it on the servers I use but I’m not an admin for? No? Then it doesn’t sound like a great option.

  • PieMePlenty@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    1 个月前

    My requirements for a text editor:

    • it displays ‘A’ when I press the ‘A’ key
    • doesn’t require more than 1 minute of learning to use it

    Bonus points if it comes pre installed.

    • smiletolerantly@awful.systems
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      1 个月前

      Idk it took me 3 attempts to learn (neo)vim, but now every Linux system I SSH in I just go straight for vi(m), because moving around and editing in Nano is just so slow when you’re used to vim keys.

      I swear I’m not trying to proselytize. People should use whatever they want, and these discussions are pointless. It’s all just tradeoffs and getting used to things.

  • oysvendsen@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    1 个月前

    I’m a emacs guy, but nano should be the only one installed by default. The default editor should tell you how to exit!

    • EnsignWashout@startrek.website
      link
      fedilink
      arrow-up
      8
      ·
      1 个月前

      Not our fault everyone blows past the kind offer of : vimtutor on startup! (I kid. The default editor shouldn’t require a class.)

      You’re 100% correct. Nano is a perfectly reasonable default.

      That said, it is 2026. It also wouldn’t kill us to default to an interactive one-time prompt that defaults to nano, but offers one or two others, and removes itself after setting the user’s choice.