ed .ssh/config
68d
wq
done, didnt fill my terminal with vim or emacs, didnt tab over to my gui editor then back againalso it's a nicely "semantic"/compact/comprehensible way of expressing patches in things like portfiles or nix expressions:
postPatch = ''
ed Makefile <<EOF
/^CFLAGS/s/-DFOO//
/-funroll-loops/s//-ffast-math/
/_BSD_SOURCE/s//_DEFAULT_SOURCE/
/^LDFLAGS/d
/ranlib/s,,${pkgs.my_special_epic_ranlib}/bin/ranlib,
wq
EOF
'';
etc etcsure, using ed as your daily driver code editor in 2022 is probably stupid, but it's still useful enough that any linux distro that excludes it by default irritates me