Using vi to Encrypt Single ASCII Text Files


vi -x filename

vi prompts you to set a password, after which it encrypts the content of the file. Whenever you access this file, vi requests the correct password.

(Source: doc.opensuse.org)

Tags: vim