As I continue to escape into the obscuria of elder text mangling tools, I've found myself enjoying the opportunity to act as the local #viTips fairy when I find anything interesting or useful.
And here's another cool vi trick I found!
You can append to a file rather than overwriting it by prefixing >> to the filename:
:w >>appendtofilename
This can work on parts of a buffer by prefixing line numbers or ranges:
2,+1w >>appendfilename
This appends the second and subsequent line.
#vi #nvi
Russ Sharek
@RussSharek@mastodon.art
Russ Sharek has been described by reliable sources as wiser than a rubber duck, a zen fool, a benevolent super villain, a talentless hack, a magical f***ing wizard, a misanthropic community leader, a clown (grand)father figure and an Impish Cabaret Rasputin. Each of these facts is true. he/him (and sometimes they/them)
mastodon.art
Russ Sharek
@RussSharek@mastodon.art
Russ Sharek has been described by reliable sources as wiser than a rubber duck, a zen fool, a benevolent super villain, a talentless hack, a magical f***ing wizard, a misanthropic community leader, a clown (grand)father figure and an Impish Cabaret Rasputin. Each of these facts is true. he/him (and sometimes they/them)
mastodon.art
@RussSharek@mastodon.art
·
Apr 10, 2026
15
0
5
Loading comments...