How to view full path in statusline of Vim

This post shows how to quickly view the full path of the currently open file in Vim.

Some of you might like have the full path of file always be shown in the statusline. To do this set the %F item in the statusline. For example:

set statusline += '%F'

If you are using the vim-airline plugin, you can display the full path in its statusline by replacing the %f in its g:airline_section_c variable with %F. This post shows how you can view the current value of this variable.

Tried with: Vim 7.3 and Ubuntu 12.04 LTS

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s