I am using vim and I need a way to always be able to see the file that I am working on without having to do ^G
.
I see the file name when I start vim but when I start to work and use various functions it gets lost.
Also I have seen other people have some kind of "addons" in the lower part of the vim console that seem like they are "button"/"tabs" (I am not sure how to describe them) that show various info constantly including the file name.
Any idea what are these plugins? Or how can I achieve what I want?
How to constantly see the current filename in vim
vim
Best Answer
You can add this to your
.vimrc
file, or temporarily while invim
.set laststatus=2
:set laststatus=2
To get the full path you can add this command, again to either your
.vimrc
or while invim
.set statusline+=%F
:set statusline+=%F
Examples
normal mode
command line mode
For more info than you care to read through there's additional info on both of these available in
vim
.References