How do I move partial command feedback into the statusline instead of the last screen line?
Answer
:set showcmdloc=statusline
Explanation
When you chain operators and motions, showcmd feedback is critical, but the default bottom-line location can fight with command messages and prompts. showcmdloc=statusline moves partial-command feedback into the statusline, so you keep that signal without burning the last screen row. This is especially useful in dense split layouts where every line of vertical space matters.
How it works
showcmddisplays pending key sequences (for example afterd,c, orgprefixes)showcmdloccontrols where that feedback appears:set showcmdloc=statuslinerenders partial command text inside the statusline instead of the command line area- The feature integrates well with
cmdheight=0setups because command feedback remains visible even when command line space is minimized
Example
You are preparing a structural edit and type an unfinished operator chain:
d2f,
With showcmdloc=statusline, the pending sequence appears in the statusline while you type, rather than competing with bottom-row messages.
statusline ... [showcmd: d2f,]
This keeps your editing context stable in heavily split windows where bottom-line churn is distracting.
Tips
- Pair with
set showcmdif it is not already enabled - If your statusline is plugin-managed, verify the plugin does not hide native
showcmdsegments - Use this with
:set rulerso position info and command progress are both visible in one place