我一直忘了我正在编辑哪个文件。
在Vim 7.x中,如何在底部有一个永久状态栏(如按Ctrl + G时显示的内容),显示我正在编辑的当前文件名?
最佳答案
From the manual,您实际上只是想要:
set laststatus=2
set statusline=%f "tail of the filename
顺便说一句:如果您想要状态栏上有更多信息,请确保
查看this link。它将为您提供一些更像这样的东西:
关于vim - 我如何在永久状态行中显示当前文件的名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2404879/