Status Line

Vim allows you to customize the text in the status line at the bottom of each window. This is done through the statusline option.

:set statusline=%f

the path to the file (relative to the current directory)

:set statusline=%f\ -\ FileType:\ %y

Notice how the spaces in the status line need to be escaped with backslashes. This is because set allows you to set multiple options at once, as we saw in the second chapter.

not finish ...

Last updated

Was this helpful?