vifn(1)
β¨ vifn(1) β General Commands Manual β¨
okay bestie, quick vibe check: this is vifn, from the General Commands Manual section 1. it's giving "chaotic little script that somehow changed my whole life" energy. let's get into it π
πΈ NAME πΈ
vifn β edit by function name rather than file name, uses vi
like. literally what it says. you name the function, not the file. iconic behavior honestly π«Ά
π SYNOPSIS π
vifn [filename/]function-name [...]
that's it. that's the whole entrance. no cap. β¨
π DESCRIPTION π
okay so vifn is a crude script β her own words, not mine, she's humble β and what she does is she takes the output from pmccabe(1) and uses it to let you edit by function name rather than file name. the way that works?? obsessed. π₯
here's the tea: when duplicate function names exist in more than one file, vifn just cycles through each one. so you keep hitting it and it keeps serving you the next one. main character energy fr fr.
and if you already know which one you want when multiple files contain identically-named functions? then you use filename/ to point at the exact file. periodt. π
π BUGS π
okay so listen, we gotta talk about the quirks. not me exposing her but like, transparency is hot:
vifnuses the file"pmccabe.out"in the current directory, or it creates it if not found by runningpmccabeon files in the current directory. so yeah. that's a thing that happens whether you asked for it or not π
the original says: "Maybe this isn't really a bug, but it could be better." and honestly? she's right. it could be better. we love a self-aware queen.
vifndoes not use the$EDITORenvironment variable, and the reason is genuinely so valid: it's only because there are editors which misunderstandvi's+lineconvention for starting the editor positioned at a specific line. so like, she could respect your$EDITOR, but some editors would fumble the+lineand she's not about to let that happen. protective gf behavior tbh π‘οΈ
π AUTHOR π
Paul Bame
(thank you for your service king π«‘)
π SEE ALSO π
pmccabe(1)β the bestie she gets her intel from, go read it too π¦
and that's the whole page, bestie!! π this one's sourced from vifn(1) and dated 17Jan2021 β go forth and edit by function name, you absolute icon β¨π
π¦ where this page comes from
- debian bookworm: pmccabe 2.8-3 Β· GPL-2.0-or-later
- debian trixie: pmccabe 2.8-3 Β· GPL-2.0-or-later
- ubuntu jammy: pmccabe 2.8-2 Β· GPL-2.0-or-later
- ubuntu noble: pmccabe 2.8-3 Β· GPL-2.0-or-later
- ubuntu questing: pmccabe 2.8-3
- ubuntu resolute: pmccabe 2.8-3build1 Β· GPL-2.0-or-later
- ubuntu stonking: pmccabe 2.9-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms