如何在vim中显示文件名,行数和字符数?


14

用第一次启动vim时vim myfile.c,它在屏幕的左下角显示文件名,并用引号,行数和字符数表示。当其他东西需要该房地产时,它消失了。我该如何找回?

我知道:echo @%可以为您获取文件名,但这只是那里的1/3。

Answers:


16

您可以通过键入获取字符和行数g Ctrl-G。要像打开文件时一样查看文件名和行数,请执行:f。看到

:help g_CTRL-G
:help :f



By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.