@cks

Let me guess: historical termcap. (-:

Might be Joy+Horton #vi, but my first guess is #termcap.

The way that termcap, and even terminfo, handle switchable stuff like this is truly terrible, because it simply does not fit their model. They're poor on input sequences anyway.

#FreeBSD still uses termcap(5), pretty much the only operating system left that does, and its manual page discusses how one might want to be compatible with AT&T #Unix S5R2 in the future.

https://man.freebsd.org/cgi/man.cgi?query=termcap&sektion=5

termcap(5)

Sfântul Ioan de Kronstadt: Unde sunt astăzi casele în care se mai citeşte Psaltirea? De aceea mulţi şi-au pierdut credinţa, nădejdea creştină, dragostea de Dumnezeu şi de aproapele, apărând în loc necredinţa, disperarea, ura 👉 https://c.aparatorul.md/otjtz 👈 #cititulpsalmilor #duhdeumilinţă #duhullumii #DuhulSfant #Dumnezeu #InimaZdrobită #ispăşireapăcatelor #nenorocire #Pace #Psaltirea #rugăciuneînflăcărată #SfântulIoandeKronstadt #SfinteiScripturi #speranţă #Vi...
https://c.aparatorul.md/otjtz
@[email protected]

Random and a little niche but here goes:

the mnemonic is "duey"

in vi

Ctrl-d scrolls down a page
Ctrl-u scrolls up a page
Ctrl-e scrolls down a line
Ctrl-y scrolls up a line

I use crtl-y and crtl-e all the time to
like get the view of the file where i want
on the screen. It doesn't move the cursor
unless it scrolls off the screen.


#vi

I very much like the keyboard they show here. I'm envious of ESC being where it is, but I'm also a fan of the tab key, so I'd be pretty torn!

https://catonmat.net/why-vim-uses-hjkl-as-arrow-keys

#keyboards #vi #hjlk

Here is why vim uses hjkl keys as arrow keys

I was reading about vim the other day and found out why it used `hjkl` keys as arrow keys. When Bill Joy created the vi text editor he used the ADM-3A terminal, which had the arrows on hjkl keys. Naturally he reused the same keys and the rest is history. Here is how the `hjkl` keys looked. ADM-3A keyboard's hjkl keys...

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

A while back, I learned that this incantation will delete all the blank lines in a vi buffer:

:%g/^$/d

Today I had my brain handed to me when a helpful person from 1991 pointed out that this easier to type version works:

:%v/./d

Relatedly, the #usenet archives (and in this case comp.editors) are a lovely place to take a break from the world.

https://usenetarchives.com

#nvi #vi #plaintext

Usenet Archives - Search Hundreds of Millions of Newsgroup Posts

UsenetArchives.com is a free library of hundreds of millions of Usenet newsgroup posts spanning decades of internet history.

UsenetArchives.com