this post was submitted on 01 Sep 2023
336 points (96.2% liked)

Programming

17540 readers
68 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 24 points 1 year ago (8 children)

My hot take: Vi, make and C would have gone the way of COBOL a long time ago if it wasn't for a lot of programmers thinking "my tools are more difficult to use, hence I'm a better programmer".

[–] [email protected] 18 points 1 year ago

I agree with C and Make, not with vim/neovim though

[–] [email protected] 16 points 1 year ago (1 children)

I agree. You should use Neovim instead of Vi nowadays. :P

[–] [email protected] 9 points 1 year ago

Yeah, its so much more interesting to edit code with only your keyboard. Always switching back and forth from mouse to keyboard is just too cumbersome.

Bonus points for Neovim: It made me understand my tools (LSP, linting, CLI tools, TUI etc...)

[–] [email protected] 11 points 1 year ago (1 children)

Upvoted for make and c, highly disagree on vi/vim though. It's significantly nicer not having to use a mouse for 95% of my work. Need to delete between two quotations to replace it? v, i, ", d does it. Whole line? d, d. Beginning of end of document? G or gg. There are keyboards to streamline just about any movement or operation, and none involve the mouse. I still need the mouse for clicking stuff in vs code, but that's mostly just when committing.

Side shout out to emacs, it's lost popularity over time, but it can do just about anything

[–] [email protected] 1 points 1 year ago (1 children)

For any interested Vi(m) user, one can install evil-mode to get vi keybindings in GNU Emacs.

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

Emacs editor commands are kind of clunky, you hold Ctrl or alt a lot and the movement commands are less intuitive and smooth than vi/vim keyboards imo. I've heard it described as: emacs has a text editor, vim is a text editor. Vim is great at editing and moving around in documents, selecting and editing text, and basically anything editor based. Emacs can do notes (org mode, linking notes, searching notes, etc), web browser, file browser, git (better git interface than vim), calendar, agenda, music playing, email... and that's all without plugins

[–] [email protected] 6 points 1 year ago

I am triggered by that statement.

[–] [email protected] 5 points 1 year ago

vi lives on because it's everywhere. On a remote machine and need to edit a file? vi is there.

[–] [email protected] 4 points 1 year ago

As a person uses neovim, make and exclusively programs in C I am indeed triggered. Maybe you could argue Make and C are hard but Vi definitely is not (atleast the basics aren't).

[–] [email protected] 2 points 1 year ago

I use the unholy IdeaVim and honestly... I love it. I won't pretend that interacting with a heavy IDE while using vim is a great idea, but it makes editing so much more comfortable.

Also while you can use something like nano for editing files in the terminal, vi(m) is much faster for more in-depth editing.

[–] [email protected] 2 points 1 year ago

Vi, make and C are elegant beautiful tools, and the joy they will bring into your life will wait steadfast and pure in spirit until you discover it.