Equivalent to :py3
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Equivalent to :py3.
Vim messages
Empty
Command entered · ready to apply
Vim messages
Empty
:python3 evaluates the displayed statement in its embedded language; Hello appears in Vim's message area and notes stays unchanged.
Vim messages
Hello
Before & after
Before
Vim messages
Empty
After
Vim messages
Hello
Subject: :python3. Documentation-backed illustration; assumes +python3 and Python 3; not executing in sandbox; not replay-verified. :python3 evaluates the displayed statement in its embedded language; Hello appears in Vim's message area and notes stays unchanged.
notes
Cursor on line 1, column 1Details & Vim help
Equivalent to :py3. 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. This command requires a Vim build with +python3 support and compatible runtime libraries for the documented embedded language interface.