Hacker News new | ask | show | jobs
by jolmg 4 hours ago
> can’t remember ever meeting anyone who chose vi over vim, let alone enough people to make th at the debate.

Because vim generally offers everything vi has.

vi does have one advantage though. It's a lot lighter. vim is like 5.4MiB in size with 82 shared library dependencies, while vi[1] is like 260KiB with 2 library dependencies (libc and ncurses).

[1] https://ex-vi.sourceforge.net/

1 comments

For resource constrained systems, don't overlook busybox vi.

https://k.japko.eu/busybox-vi-tutorial.html

Right. Sometimes all you need is to edit a couple lines in a config file and get out, in which case hjkl, i/a, and Esc (and then :wq) are all the editor really has to implement. (And a few more movement tools like w/b and so on). Plugins? Colorschemes? You don't need 'em to edit a couple lines in a config file. (I'll grant that syntax highlighting that makes the comments a different color from the actual lines can be helpful, but if it comes at the cost of a much larger binary it's not always worth the cost on those resource-constrained systems).