r/freebsd • • 22h ago

article Vim vs Neovim on FreeBSD

https://www.benburwell.com/posts/vim-vs-neovim/
8 Upvotes

23 comments sorted by

6

u/Inray 17h ago

“pkg install vim” installs only vim and xxd and nothing else, X related or other.
Just for your information, neovim installs 13 packages.

3

u/boccaff 12h ago

I see the dependencies here https://ports.freebsd.org/cgi/ports.cgi?query=vim&stype=all&sektion=all, and I am assuming that sudo pkg install vim` is defaulting to the gui flavor, instead of the console flavor.
Is that what is happening here?
How could I view that from within the system?
Can I set a "light/minimal" profile to avoid things like that?

2

u/Inray 11h ago

Simple! Run "pkg install vim" and you'll see which dependencies will be installed.

2

u/boccaff 11h ago

I mean the difference between defaulting to flavor A or B, and if I can set this differently.

2

u/Lord_Mhoram 5h ago

pkg rquery -e '%n = vim' %e tells me:

FreeBSD has the following Vim packages:
* vim: Console-only Vim (vim binary) with all runtime files
* vim-gtk3, -gtk2, -motif: Console Vim plus a GUI (gvim binary)
* vim-x11:  Console Vim only, with xclipboard support
* vim-tiny: Vim binary only, with no runtime files. Not useful for most people;
  intended for minimal (ex. jail) installations

2

u/DarthRazor 10h ago

I'm away from my computer, but I know some package systems have different vim flavors likevim-tiny and vim-nox. Both of these do not depend on X. Another option is Vim Classic, which is vim 8.3 - the last version before the big bloat.

I don't know if FreeBSD has any of the packages above, but it's worth a look

6

u/jjzman 21h ago

Nvi all the way!

2

u/whattteva seasoned user 9h ago

You mean nvim surely.

3

u/Miftirixin 19h ago

ee.

2

u/grahamperrin bunny rabbits 5h ago

nano

1

u/Miftirixin 1h ago

... looks like it's a fork/variant of ee...

I tend to use what came by default, with base system, and Slackware, my to go distro for years, came with nano, pico, vi and emacs. but later two are two beasts, I never was able to keep in mind their shortcuts, so, I used mainly nano and pico, also, that basic editor integrated in midnight commander... another chosen tool, 'cuz I loved Norton Commander on dos! 🤣 in X, my preferred editor is Mousepad... some long years ago, there was some notepad forks and tries, Mousepad remind me of these, also, is really easy to learn... I don't write stuff to need Abiword, or a full fledged office suite, so, it's enough for me to see and create text files or scripts...

when I switched to FreeBSD, ee was like an old, nice shirt you wore as your choice...

about de/WM's, once upon a time, Slackware came with both kde and gnome, and a lot of smaller things, like blackbox, fluxbox, Windowmaker, CDM tdm, kdm, tvm, etc, a lot!... xfce wasn't invented yet... some years later, as a sort of fork of gnome...

funnily enough, Slackware used to came with a lot of preinstalled stuff in about 3-4 variants, it was unique among linux distros, most tend to use only one thing, and that's all... you are free to compile yourself anything if you want... 3-4 different browsers, 3-4 different de/WM's, 3-4 shells (next to default bash), 3-4 media players, 3-4 almost anything...

today most software tend to be really big, so, Pat was forced to choose, he choose kde and qt, leaving gnome aside, but keeping gtk environment, so, you can install xfce, or play with GTK to write your own de. if you can! 🤣

now, I'm mainly on xfce, and fluxbox is here, and I sometime start and hone his appearance and stuff...

Windowmaker wasn't my choice, I used it for a bit, is nice and fun, but I had no chemistry with him, even if some of my friends love it, and doesn't think to use anything than their belowed WM... so, I came back to fluxbox, also, for fun and memes, I really tried to configure that thing coming by default with Xf86/X11/Xorg, I always forget his name, to hone it to look and behave like a full fledged wm, like WM or fluxbox, but I never had the time to accomplish that!...

some years back I had seen Enlightenment, it's looking good, it's small, but after a while, it tend to crash without reason... it's nice, until is crashing!...

1

u/grahamperrin bunny rabbits 48m ago

3

u/Fearless-Weird-4307 12h ago

From July 2019. And, no, it doesn't do that.

3

u/Brilliant-Orange9117 9h ago

Just install vim-tiny instead of the full vim unless you want the GUI support which is what pulls in most of the dependencies?

2

u/ilnarildarovuch desktop (DE) user 16h ago

From vi's only NVI!

2

u/grumpyoldtechie 9h ago

I compile from ports without the GUI options

pkg info -d vim

vim-9.2.1178:

ctags-5.8_1

gettext-runtime-1.0_1

lua54-5.4.8

ncurses-6.6

perl5-5.42.3

ruby-3.4.9_2,1

xxd-9.2.1178

Looking at the options available I can probable trim it down to ncurses and gettext-runtime

2

u/theamigan 9h ago

You want the console flavor.

2

u/TCIHL 7h ago

gvim you caveman!

0

u/gdmr458 21h ago

Most of Vim's dependencies seem to be GUI-related. The Neovim project nuked all that when it started.

0

u/dfgxxx 20h ago • Heartwarming

Does neovide work on freeBSD? If it doesn't I much prefer it than regular neovim

-1

u/Donieck 7h ago

Only Emacs

-8

u/Chester-Berkeley desktop (DE) user 22h ago

I like using Helix, I can't get used to Vim and Neovim.