Vim Recall繁體中文

Force a redraw of the display

:redraw

Example

Normal 0 / 2

Force a redraw of the display.

Rendered screen

Buffer model
red blue
Screen
red ???? (corrupted terminal cells)
Before & after

Before

Rendered screen

Buffer model
red blue
Screen
red ???? (corrupted terminal cells)

After

Rendered screen

Buffer model
red blue
Screen
red blue (cleared and redrawn)

Subject: :redraw. Documentation-backed illustration; assumes legacy command context and terminal display corruption only; not replay-verified. Clears and redraws the screen immediately. This repairs rendered terminal cells while the buffer model remains red blue.

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

Force a redraw of the display. 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 :redr[aw] 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.