Vim Recall繁體中文

Run Perl command

:perl

Example

Normal 0 / 2

Run Perl command.

Vim messages

Empty
Before & after

Before

Vim messages

Empty

After

Vim messages

Hello

Subject: :perl. Documentation-backed illustration; assumes +perl with a usable Perl runtime; not executing in sandbox; not replay-verified. :perl evaluates the displayed statement in its embedded language; Hello appears in Vim's message area and notes stays unchanged.

Sample buffer
notes
Cursor on line 1, column 1
Details & Vim help

Run Perl command. 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. The index spelling :pe[rl] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative. This command requires a Vim build with +perl support and compatible runtime libraries for the documented embedded language interface.