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
    3
    ·
    2 months 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
      0
      ·
      2 months 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.

  • Slashme@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    Yes, started using vi when I started using a Unix login at university. That was in about 1994 or so. When I started using Linux it was definitely vim.

    I’ve tried using evil-mode and vim keybindings in other editors. I somehow keep coming back to vim, though.

  • 00xide@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 months 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.

  • collapse_already@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    VI and vim have been my editors of choice for thirty plus years at this point. I also use set -o vi in bash.

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months 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"  
    
  • folaht@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 months ago

    Do you use vim as your default text editor?

    Not just text editor, but also IDE via rocks.nvim.
    Ever since I wanted to edit some file that had like 2000 lines and I just wanted to quickly go to line 1164.
    Nano wasn’t cut out for that and I hadn’t heard of emacs.
    But I use a Typematrix dvorak keyboard, so I had to rearrange all the command.
    Now I’m stuck with it and I enjoy it.

    If you do not, have you ever been in a situation you could do nothing but use vim?

    Yeah, whenever I type git commit -m "message goes here"
    Also, I wanted to program on a server, so I ssh’d into it and decided that vim was the way to go as an IDE.

  • utopiah@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

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

  • nous@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    No. But only because I switched to helix. I have used vim for a lone time before that. Only having vim on a system is fine. Far worse is only having vi. Which is almost like vim but missing a lot of useful things.

    • KRAW@linux.community
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      I use helix part-time but am forced to go back to neovim a majority of the time for a few reasons:

      1. no persistent undo
      2. no ctags and cscope (some C/C++ projects don’t work well with clangd)
      3. niche plugins (e.g. I just found a neovim plugin that gives me a way to run ipynb files in-editor)

      If 1 and 2 got fixed, I’d be a full time helix user