Vim Recall繁體中文

Force a redraw of the tabpanel

:redrawtabpanel

Example

Normal 0 / 2

Force a redraw of the tabpanel.

Tabpanel

Custom format
tabpanel includes %{g:phase}
g:phase
2
Last rendered value
1
Before & after

Before

Tabpanel

Custom format
tabpanel includes %{g:phase}
g:phase
2
Last rendered value
1

After

Tabpanel

Custom format
tabpanel includes %{g:phase}
g:phase
2
Last rendered value
2

Subject: :redrawtabpanel. Documentation-backed illustration; assumes +tabpanel, a visible custom tabpanel containing %{g:phase}; after a script changed g:phase to 2 without scheduling panel redraw, leaving the rendered value 1; no other panel redraw pending or interfering input/callbacks; not replay-verified. Re-evaluates and redraws the tabpanel, so the stale value 1 becomes 2 without editing text.

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

Force a redraw of the tabpanel. 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 :redrawtabp[anel] 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.