News for hackers. Stuff that matters.
Re:The Future of the Vim Project by tambourine_man on Thursday August 10, 2023 @08:06AM (#37075128)
From what I remember, NeoVim drops vi compatibility mode.

vi is part of POSIX. That alone would be a reason to mantain Vim as a modern superset of vi.

Re:The Future of the Vim Project by revscat on Thursday August 10, 2023 @08:37AM (#37075414)
Neovim is a superset of vim, so this argument applies to both.
Re:The Future of the Vim Project by johncoltrane on Thursday August 10, 2023 @08:59AM (#37075593)
No, Neovim is not a superset of Vim. Vim has things that Neovim doesn't have and vice-versa.
Re:The Future of the Vim Project by marcthe12 on Thursday August 10, 2023 @08:59AM (#37075600)
Neovim remove set compatible (hardcodes set nocompatible). Vim support the POSIX vi via that option.
Re:The Future of the Vim Project by tambourine_man on Thursday August 10, 2023 @11:14AM (#37077207)
Not quite. Vim is vi compatible by default. You have to explicitly opt in for the newer behavior.
Re:The Future of the Vim Project by rgoulter on Thursday August 10, 2023 @09:13AM (#37075728)
In what circumstances would you run `vi` and find yourself upset that you end up in `vim`?
Re:The Future of the Vim Project by tambourine_man on Thursday August 10, 2023 @11:10AM (#37077156)
You won’t, but vi is scriptable and part of POSIX.

It’s a basic infrastructure that you don’t want to break.

Re:The Future of the Vim Project by rgoulter on Thursday August 10, 2023 @11:31AM (#37077479)
Apparently the original vi isn't POSIX compliant; nor is vim. https://vimhelp.org/vi_diff.txt.html#posix

I think "if the script worked before, I want it to work later" has much more practical weight. Though, on the other side of practicality, I've heard sed, awk, and perl suggested for manipulating text in bash scripts far more than I've heard of vi recommended for the task.

Re:The Future of the Vim Project by ansible on Thursday August 10, 2023 @02:45PM (#37080104)
Yes. If you need to do some text manipulation in a shell script, `sed` or something like that is what I'd reach for first. (I haven't used `awk` or Perl for quite a while.) I'd think even `ed` would be a more straightforward choice than `vi`.