Fern's NixOS Vim Guide
A newbie friendly guide to configuring Vim in NixOS
Create the following file struture in
/etc/nixos |-- apps |-- vim |-- default.nix |-- vimPlugins.nix
The package linked to from here is now pure ESM. It cannot be
require()'d from CommonJS.
This means you have the following choices:
import foo from 'foo'instead of
const foo = require('foo')to import the package. Follow the below guide.
await import(…)from CommonJS instead of
This site throws in users and, most importantly, developers face, the fact publishing websites with hundreds of JS Kilobytes just to see some content, content that might also break due JS itself or browsers that haven't been tested or targeted, is very bad.
The same site is also great to remind everyone that a11y (accessibility) matters, and if you got upset by its disruptive technique, and you are a Web developer, now you know how it feels for people incapable of surfing the "modern Web" with its overly-bloated frameworks and practices that way too often don't take a11y into account.
However, JS is not to blame here, while developers abusing JS without following graceful enhancement practices, or without testing their sites offer some meaningful content even for users that might have disabled JS for whatever reason, are to blame so ... please "don't be that kind of developer".
That being said, as an exercise to see if I could surf it via JS, I've created this ti
There are some articles you want to read first:
Nix Flakes is currently an experimental feature, so this tutorial assumes that you are using the
This article aims at explaining lambda calculus in a more approachable less 'mathy' manner.
Memoization: Memoization is an optimization technique used primarily to speed up computer programs by caching the result of expensive function calls and returning the cached result when fed with the same input.
Pure Function: A pure function is a function whose computation does not depend on globally declared variables, it does no I/O or mutations. All it does is return a value after doing a bunch of computations on the arguments it recieves. For a given set of arguments, a pure function will always return the same value. Thus, a pure function is one that is memoizable.