Search code examples
vim

How can I have a permanent status line showing the name of the current file?


I keep on forgetting which file I'm editing.

In Vim 7.x, how can I have a permanent status bar at the bottom (like what is displayed when I press Ctrl+G) showing the current file name I'm editing?


Solution

  • [From the manual][1], what you want is:

    set laststatus=2
    set statusline=%f "tail of the filename