Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Today's follow-up #FreeSoftwareAdvent entry is vi/vim.

Uncategorized
1 1 6
  • Today's follow-up entry is vi/vim.

    Which I use depends on the situation. Classic vi/nvi tends to be lighter weight and start faster, while vim offers extra features that I find particularly useful). I usually just type `vi` which gets me `vi` on OpenBSD, `nvi` on FreeBSD, and `vim` (or `vim-tiny`) on most flavors of Linux. If I specifically want vim features, I'll invoke it as such directly.

    I could go on for ages about favorite features, but a select few:

    • the ability to keep my hands on the home row and not use a mouse is helpful for preventing RSI symptoms

    • it's a language¹ of editing, involving counts, verbs/commands, and objects/motions, so I can express my editing *intent* and then use the period command to re-issue that same editing *intent*

    • the :global or :substitute commands can make massive-yet-precise edits across huge files

    • the :*do commands extend that power across multiple files, allowing me to precisely edit millions of lines across thousands of files with targeted precision

    • it's ubiquitous—even as some Linux distros have started removing ed(1) from the base installs , relegating it to packages, I can always type `vi` on any Unix-like/POSIX system and be editing with a powerful editor. And with builds for Windows and my phone, I can use it everywhere. No need to install anything

    • they work just fine over a SSH connection without a GUI, and use minimal resources so they work even on that old hardware from the 90s.


    ¹ https://gist.github.com/nifl/1178878

  • stefano@mastodon.bsd.cafeundefined stefano@mastodon.bsd.cafe shared this topic on

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    5 Views
    Today in #FreeSoftwareAdvent #newsraft #RSS ```git clone https://codeberg.org/newsraft/newsraftcd newsraftsudo apt install libcurlpp-dev libgumbo-devmake && sudo make install````1 minute later (without parallelization on a 8yo cpu), you have built a complete RSS reader.You can even get Gemini feeds (gemget needed though).ex:$(gemget -sq https://geminiprotocol.net/news/atom.xml) "GeminiProtocol main feed"Thank you Grigory Kirillov!
  • 0 Votes
    1 Posts
    4 Views
    Following on the heels of ssh(1) yesterday, today's #FreeSoftwareAdvent is rsync(1).It's one of the key elements in my podcast listening (more on that to come later this month), where my podcatcher pulls down podcasts into a backlog tree structure, and I rsync the whole thing to my phone for listening. It also undergirds my blog deployment, building in Nikola (still gotta find some time to switch that to my custom Makefile driven build process) and then rsync'ing the output/ tree up to my web-server.And last night our teen wanted our family photo website content's pictures for a school project, so I was able to rsync the latest copy of them to a backup USB drive that he could browse offline.It's reliable and does a particular job (keeping two directory trees in sync) very well. Yes, ZFS send/receive is more efficient if both sides support it and they're whole datasets, but that's not always the case.Also, since I use bash as my shell, the "^" substitution makes it easy to issue something like$ rsync -n -avr $SRC $DESTand if it looks good, use$ ^-nto remove the dry-run flag and run it for real.
  • 0 Votes
    1 Posts
    5 Views
    Today in #FreeSoftwareAdvent I'm thankful for the BSD projects, particularly FreeBSD & OpenBSD. Nothing against NetBSD or DragonflyBSD, I just haven't found a regular use-case for them in my day-to-day.I recently wrote up¹ why/how I ended up on a mix of FreeBSD & OpenBSD after a long tenure with Debian since it drifted from the Unixy principles² I loved and grew up with.⸻¹ https://blog.thechases.com/posts/why-bsds/² https://en.wikipedia.org/wiki/Unix_philosophy
  • 0 Votes
    1 Posts
    4 Views
    Going a bit off the beaten path for #FreeSoftwareAdvent, today I get to appreciate HaikuOS¹. While it has some issues (mostly keyboard-mapping) that prevent me from using it as the main OS on my writerdeck netbook, it is AMAZING in how well it uses resources. That little underpowered Atom processor with its 2G of RAM just flies. It boots in a fraction of the time of anything else (other than DOS) that I've installed on the hardware. The GUI and all the applications are delightfully snappy.So please join me in sending a little praise toward the @haiku project for all the wonderful work they do!⸻¹ https://www.haiku-os.org/