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
    48
    ·
    1 month 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
      ·
      1 month 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.

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 month 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
    8
    ·
    1 month 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
        ·
        1 month 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.

  • Clutter@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    1 month ago

    I’m a freelance linux it nerd. I figured I better get used to vim/nvim because every company I visited had different tooling available but their servers ALWAYS had vim.

    Now I have a nice .vim setup I can easily copy/paste and work easily and fast. I’ve become quite adept in the years following that decision.

    Plus, as a freelance dude using vim quickly and flying through code bases makes it really seem like I know what I’m doing / hacker type … I don’t. And I’m no hacker… But the customer is happy soooo :-)

    P.s. I’m currently trying out the Zed editor with vim bindings. They are emaculate!

  • utopiah@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    1 month ago

    Yes. I also use vim here (in this Web textarea where I’m typing this answer) thanks to Tridactyl.

  • tiny@midwest.social
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 month ago

    Yes I love using neovim it feels better having an editor, agent, and cli in separate terminal tabs instead of having one program for all three

  • notptr@lemmy.cyberia9.org
    link
    fedilink
    arrow-up
    4
    ·
    1 month ago

    I use to use vim but I discovered org mode so I use emacs.

    Recently I been doing programming on plan 9 so I been using acme.

  • kibiz0r@midwest.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 month ago

    VSCode/Codium with vim mode. Regular vim if I’m stuck in text land.

    I haven’t tried neovim. Supposedly that could handle everything I need out of vscode, but it’s easier to not be an odd one out at work.

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 month ago

    I switch between Nano and Vi depending on what machine I am on and if I remember if Nano is installed.

    • yaroto98@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      Same, also depends on what I’m going to change. If I’m doing any heavy editing, vi/vim. Something small and fast? Also usually vi/vim, but sometimes nano as it’s preinstalled unlike vim nowdays.

  • flynnguy@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 month ago

    I used to use vim pretty exclusively, I’ve since switched to neovim. There have been a few cases where vim/nvim weren’t available but regular vi was and I’ve used it to edit text files. I imagine there were other editors but I’m so accustom to how vi/vim/neovim does things that I can’t imagine using anything else. Sometimes someone will try and convince me to use a new editor and I’ll try it but generally end up switching back to nvim. Even vi compatibility mode doesn’t really help because I use a bunch of plugins.