Force a redraw of the tabline
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Force a redraw of the tabline.
Tabline
- Custom format
tabline includes %{g:phase}- g:phase
1- Last rendered value
1
Prepared redraw-tabline.vim
let g:phase = 2 redrawtabline
Command entered · ready to apply
Tabline
- Custom format
tabline includes %{g:phase}- g:phase
1- Last rendered value
1
Prepared redraw-tabline.vim
let g:phase = 2 redrawtabline
The prepared script changes g:phase to 2 and runs :redrawtabline, which re-evaluates and redraws the tabline without editing notes.
Tabline
- Custom format
tabline includes %{g:phase}- g:phase
2- Last rendered value
2
Prepared redraw-tabline.vim
let g:phase = 2 redrawtabline
Before & after
Before
Tabline
- Custom format
tabline includes %{g:phase}- g:phase
1- Last rendered value
1
Prepared redraw-tabline.vim
let g:phase = 2 redrawtabline
After
Tabline
- Custom format
tabline includes %{g:phase}- g:phase
2- Last rendered value
2
Prepared redraw-tabline.vim
let g:phase = 2 redrawtabline
Subject: :redrawtabline. Documentation-backed illustration; assumes supported visible custom tabline containing %{g:phase}, g:phase=1 already rendered, readable legacy redraw-tabline.vim in the current directory containing the displayed two commands, unmapped input and no interfering callbacks or pending prompts; not replay-verified. The prepared script changes g:phase to 2 and runs :redrawtabline, which re-evaluates and redraws the tabline without editing notes.
notesCursor on line 1, column 1Details & Vim help
Force a redraw of the tabline. 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 :redrawt[abline] 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.