https://invisible-island.net/vile/perl/
lock - lock a vile session
In .vilerc:
perl "use lock"
In [x]vile:
:lock
This command allows the user to lock his [x]vile session.
Once the session is locked, "Enter password to unlock: " prompt will appear in the status line prompting for the password. The session will give unlock and give control back to the user only when the correct password is entered. This password is the same as what the user used to login to the machine.
When the session is locked, ideally the modeline and the editing buffers should blank out to prevent others seeing any data, but this does not happen presently.
Vile, Perl and Vile's Perl interface.
Kuntal Daftary (daftary@cisco.com), 1998