Vim Recall繁體中文

Ask for encryption key

:X

Example

Normal 0 / 4

Ask for encryption key.

Buffer encryption

key
empty
Disk file
plaintext, unchanged
Before & after

Before

Buffer encryption

key
empty
Disk file
plaintext, unchanged

After

Buffer encryption

key
set (hidden)
Disk file
plaintext, unchanged until write

Documentation-backed illustration. Vim has +cryptv; matching key and confirmation are supplied to :X; no key or file access is performed by this illustration. Enter an example key twice at the hidden prompts. :X stores it in the key option; encryption is applied on a later write. Primary help: :X.

Sample buffer
alpha
beta
gamma
Cursor on line 1, column 1
Details & Vim help

Ask for encryption key. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.