I know CTRLg displays the current file you’re working on. Is there a way to modify my .vimrc such that the filename/path is always displayed?
I know CTRL g displays the current file you’re working on. Is there a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In your statusline, add a
%Fto display the full path:Note,
%Fwill be the full path. To get a path relative to the working directory, use%f.If your statusline is not already visible, you may first need to configure it to be always visible, via
laststatus=2See
:help laststatusfor what the options mean. Normally, the statusline may be hidden, or hidden unless multiple buffers are open, but I find it extremely useful to have on all the time with customizations like this, well worth giving up one screen line reserve for it.