• cally [he/they]@pawb.social
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 day ago

    I used to use Neovim until I got tired of it and switched to Helix. I tried Emacs for a bit but turns out that Helix does everything I need it to do without any extra configuration.

        • UltraBlack@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 day ago

          I’m coming from kakoune. Language servers are something that’s shockingly hard to get running reliably. Helix has solved this for me

          • CheesyFox@lemmy.sdf.org
            link
            fedilink
            arrow-up
            1
            ·
            23 hours ago

            weird. I just use kakoune-lsp, and it works just fine out of the box, spare bit of copypasting from the readme on their github.

            I really like that i have to put in no effort for Helix to work, but unfortunately its just too rigid for me.

            And it also backs down on kakoune’s philosophy, returning back the necessity of selection mode. It really frustrates me in this aspect. Kakoune’s more heavy reliance on modifier keys seems way more handy and sensible to me. Helix’s way just creates unnecessary complications, and feels like a change for the sake of a change.

            • UltraBlack@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              15 hours ago

              Helix pretty much shares the kakoune keymap, so no idea what you mean.

              Also, plugin support using scheme is in the works. The dev still only sees it as a draft but it’s pretty usable already

  • Alawami@lemmy.ml
    link
    fedilink
    English
    arrow-up
    54
    arrow-down
    1
    ·
    2 days ago

    May I introduce you to the simple life of just using whatever text editor and terminal that comes presintalled on your favoraite distro? It’s ridiculous how far this can get you, I’ve been enjoying gnome text ediotor with gnome terminal.

    • smiletolerantly@awful.systems
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      edit-2
      2 days ago

      Yeah no thanks. Linting, formatting, LSP integration, Treesittet,… are just kind if essential for programming work. And the advantage of nvim/emacs/… is that you can bend them to your will and preferences.

      If you just want to edit some config files, for sure, use literally anything. But I need something proper for work, and if I already set all of that up, might as well use it for the config files, too.

    • da_cow (she/her)@feddit.orgOP
      link
      fedilink
      arrow-up
      2
      ·
      2 days ago

      I did this for the past 3 years. At some point I just got curious what all the hype is about, so I installed emacs and slowly started to use it. Now I am at a point, where Im getting comfortable around emacs and actually start to enjoy its features.

      Befor I usually used nano, since I mostly edited my text files from within my terminal.

    • sepi@piefed.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      Fake news. Emacs is the only text editor non-heathens and heathens should be using.

    • lilith267@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 day ago

      This is also my goal! …since 2020.

      I love vim/nvim but I’ve gotten used to using VIM more as a text editor then an IDE. Writing a script? Taking notes? Maybe even a small program? VIM all the way. Working on a big project that needs an LSP? Either spend the next 20 hours fucking with your VIM config and 20 plugins to get basic functionality… Or just open VSCode and install one plugin

      Heres to hoping since NVIM 0.11 with their LSP overhaul I can finnally make the full switch

  • outerspace@lemmy.zip
    link
    fedilink
    arrow-up
    8
    ·
    2 days ago

    The problem with Emacs is that it sucks but there is nothing better, and you are getting stuck with it forever. Welcome!

  • sem@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 days ago

    I keep thinking that as I use vim, I’ll feel the need to learn more commands, but I hardly do anything except:

    • q, wq, or q!, quit with or without saving
    • i, insert
    • set:paste, preserves spacing
    • Shift-insert, pastes if shift-ctrl-v doesn’t work
    • / , search for a string (iirc, don’t really need it much).

    What are your vim GOTOs?

    • [object Object]@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      19 hours ago

      I hope that you use the motion commands at least, because that’s the whole point of the separate modes. If not, you should look them up and add some of them to your workflow little by little.

      The most basic ones are wand b to go a word forward or back; 0 and $ to go to the start or end of the line, or g0 and g$ for the visual line. f to jump to a particular letter forward. { and } to go to the start/end of the paragraph.

      V is useful for selecting whole lines.

      % can jump or select to the matching parenthesis or brace. With matchit installed, it also jumps to matching keywords like end or HTML tags.

      For pasting, you should use p in the normal mode. Also P pastes before the cursor. This is useful for moving text around by deleting it with something like daw, jumping elsewhere, and doing p.

      • sem@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        18 hours ago

        This is all very advanced to me. I use Home and End to go forward and back in the line, but w and b sound good to m (just wish they made more intuitive sense), also p and P.

        I should print out a ref sheet.

        • [object Object]@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          18 hours ago

          Vim has a built-in tutorial on the motion commands and such. I don’t remember how it’s invoked, but probably something like :help tutorial. You’ll get an overview of the commands and see which ones might be useful to you right away. As I mentioned, I recommend getting the hang of them one or a few at a time, so they are incorporated in your toolbox.

          Speaking of help, it’s generally useful in Vim to use :help {something} when you want to recall how something works. It has consistent naming for the help pages for various functionality, e.g. :help :s shows the page about the :s command, and there are pages for every motion command, etc. — I don’t remember the prefixes as it’s been a while since I used Vim proper, but just :help should give you an index.

          Also, if you’re coding in Vim, there are ways to integrate documentation for your language, so that K would show help for the function or whatever under the cursor. Back in the day I’ve had PHP docs plugged into Vim, but it’s been a while, so idk how it’s done now. Iirc there are dumps of docs from the Dash app, which might be available as vimdocs.

    • Stitch0815@feddit.org
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      My most used commands are also just the classics

      cw - delete the next word amd enter insert mode

      dd - delete line

      gg - go to first line

      G - go to last line

      :s/searchphrase/replacephrase - search and replace

      And a couple of visual mode commands do cut and paste blocks or comment out blocks of code

  • Lyubo@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 days ago

    Good, good! You’re on the right way! But remember, there is a world outside your Emacs, don’t forget about it.

  • TheRealKuni@piefed.social
    link
    fedilink
    English
    arrow-up
    22
    ·
    2 days ago

    I’ve been using emacs for work for years because the proprietary language I have to work in was set up with emacs as the default editor. I bitched and moaned when I first started because I was used to more modern solutions.

    When they finally got VS Code support working…I stayed with emacs. Stockholm Syndrome, I suspect. But I know what I’m doing in emacs. I’m comfortable.

      • TheRealKuni@piefed.social
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        2 days ago

        Nah, it’s called CM which I believe stands for Configura Magic. It’s a C-based language sort of similar to C#, but specifically made for use with Configura’s space-planning software.

        I actually like the language, I just hate that it’s extremely niche.

        Edit: the similarity between the names Magik and Configura Magic is not lost on me, but I don’t think they’re related.

        • Decq@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          2 days ago

          Hmm seems coincidence yes. Though Magik is also very niche… I think it was more Pascal inspired and later ported to jvm. I guess the name and Emacs were just a sign of the times.

  • Wofls@feddit.org
    link
    fedilink
    arrow-up
    11
    ·
    2 days ago

    Save yourself the trouble and just skip ahead: real programmers use butterflies

  • AceFuzzLord@lemmy.zip
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    2 days ago

    I may be crazy, but for regular text file, VIM is usually my go to. But, because of tag auto completion Bluefish has been my HMTL/CSS editor for a while. Most other things are in VIM. Bash? VIM. Python? VIM. C? Trash bin! Did not like the C class I took last quarter!

    Exception being things like .docx or .odt files that have no business being opened in VIM.