配置Vim:关闭showcmd并移除左下角输出栏的方法
Got it, let's get rid of that distracting bottom-left bar for good! That output you're seeing is directly linked to Vim's showcmd feature, which displays partial commands, selection counts, and other small feedback in that corner. Here's how to disable it permanently:
Edit your Vim configuration file
Open your persistent config file—this is usually~/.vimrcon Linux/macOS, or%USERPROFILE%\_vimrcon Windows. You can open it right in Vim with:vim ~/.vimrcAdd the necessary config lines
Paste these lines into the file to turn off the unwanted features:" Disable partial command display in the bottom-left set noshowcmd " Optional: Hide the mode indicator (like -- INSERT --) too for a cleaner look set noshowmodeset noshowcmdis the key line—it completely removes that bottom-left output you're annoyed by.set noshowmodeis extra, but if you also want to get rid of the mode label that appears in the same area, include this line as well.
Save and apply the changes
Save the file and exit Vim with::wqThe next time you launch Vim, that irritating bottom-left bar will be gone.
Test it immediately (temporary fix)
If you don't want to restart Vim right now, you can run these commands directly in normal mode to see the change right away:
:set noshowcmd :set noshowmode
Just remember these changes won't stick after you close Vim—adding them to your vimrc makes them permanent.
内容的提问来源于stack exchange,提问作者KnownAsDon

