Do you use vim as your default text editor? If you do not, have you ever been in a situation you could do nothing but use vim?

  • Random Dent@lemmy.ml
    link
    fedilink
    English
    arrow-up
    83
    ·
    15 days ago

    I’ve been using Vim for 20 years.

    I only opened it once and I haven’t been able to close it yet

    • Dave@lemmy.nz
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      15 days ago

      I’m not sure at what point in the last 20 years they put the instructions in the vim, but it gives you clear instructions on what to do if it thinks you’re trying to escape from vim jail.

    • onlinepersona@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      15 days ago

      Helix is just user friendly vim, honestly. Vim barely has any help and helix is batteries included. Ever since discovering it, vim feels like a downgrade.

      • Sickday@kbin.earth
        link
        fedilink
        arrow-up
        7
        ·
        15 days ago

        It’s just way easier to get helix to a usable state for the languages I write in than it is with vim. I don’t have to go plugin hunting or vetting random github repos; all the support mostly comes shipped with the editor. Throw some lines in TOML file and you’re good, vs downloading a plugin manager, downloading plugins, configuring those plugins and hoping you got everything right and the plugin repo’s README isn’t 10 years out of date.

        vim feels like a downgrade.

        100%

        • onlinepersona@programming.dev
          link
          fedilink
          arrow-up
          5
          ·
          15 days ago

          The process you described is definitely what I went though with vim and neovim. After about a decade of vim I still couldn’t get proper language support and an IDE like experience going. When language servers and the debugging protocol came along, it was worse to find the right plugin and configure that correctly.

          Helix simplified my decade long struggle with vim in a single weekend. It still isn’t a TUI IDE but it’s such an upgrade, I’ll take it.

    • BartyDeCanter@piefed.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      15 days ago

      Same. Every machine I have control of I install Helix. For the rest, I remember just enough vi to do what I need and get out.

  • RotatingParts@lemmy.ml
    link
    fedilink
    English
    arrow-up
    14
    ·
    15 days ago

    Old school Emacs user here. The keyboard shortcuts are so ingrained in my head I don’t know if I would ever be able to switch to another editor. Old dog …

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    10
    ·
    15 days ago

    i mean vim is fine and all and i can get around it fine but nano superiority

    # ── behaviour ────────────────────────────────────────────────  
    set autoindent  
    set atblanks  
    set casesensitive  
    set constantshow  
    set cutfromcursor  
    set historylog  
    set indicator  
    set linenumbers  
    set minibar  
    set mouse  
    set nohelp  
    set positionlog  
    set smarthome  
    set softwrap  
    set speller "aspell -x -c"  
    # set suspend  
    # NOTE: Removed in nano 7.x; CTRL+Z suspend is now always enabled by default.  
    # Kept here for reference in case of older nano versions.  
    set tabsize 2  
    set tabstospaces  
    set zap  
    
    # ── backups ────────────────────────────────────────────────  
    set backup  
    set backupdir "~/.cache/nano/backups/"  
    
    # ── syntax highlighting ───────────────────────────────────────  
    include "/usr/share/nano/*.nanorc"  
    
  • 00xide@lemmy.ml
    link
    fedilink
    arrow-up
    10
    ·
    15 days ago

    For much, not for all.

    System and user files are pretty close to one another in NixOS, so I use it for both. Sudoedit is set to vim, but I have a kitty and neovim (technically it’s nnot nvim, it’s nvf so I can config it in Nix instead of Lua) environment that tiles quite nicely and uses nonconflicting keymaps.

    I use mod+hjkl for navigating my window manager, too, which has led to an interesting situation. Hyprland just migrated to Lua from Hyprscript, and Neovim uses a lot of Lua for inbuilt commands and stuff, so you’d think I’d be thrilled to write them both in the same language. Instead I just sigh at the greener grass because I already configured them both in Nix.

    I do use Obsidian (with Vim binds, and monospace source mode as default for everything except tables) for my markdown viewer / primary notekeeping cloud sync, and Kate for previewing media that needs to be formatted right as a .doc or .pdf.

    Some Obsidian notes are handled with Vim, actually. I have a script that sets up a new Zettelkasten note with automatic tags and opens it in Neovim, because I find it faster than Obsidian when I have a single thought and need to write it before it’s forgotten. Thanks ADHD. I write Zettelkasten like little scripts of code - unique, atomic, referencing and importing each other, with a unique version history, and Vim’s great at that.

      • 00xide@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        15 days ago

        Thank you! I believe Vim is a deeply individual and almost emotional experience, and a bit of rambling is always worthwhile to get the perspective of a Vim setup.