我有一个简单的要求:我想显示我正在编辑的缓冲区的编号.
我不想输入:buffers(或等效的),但是我的状态栏中显示的这个数字与文件名,当前的列信息等一起显示.
我不想输入:buffers(或等效的),但是我的状态栏中显示的这个数字与文件名,当前的列信息等一起显示.
有没有办法做到这一点?内置的帮助在这一点上不是很有启发性.
:h状态显示需要的帮助.
原文链接:https://www.f2er.com/bash/386295.html" Status Line { set laststatus=2 " always show statusbar set statusline= set statusline+=%-10.3n\ " buffer number set statusline+=%f\ " filename set statusline+=%h%m%r%w " status flags set statusline+=\[%{strlen(&ft)?&ft:'none'}] " file type set statusline+=%= " right align remainder set statusline+=0x%-8B " character value set statusline+=%-14(%l,%c%V%) " line,character set statusline+=%<%P " file position "}