📅 2014-Feb-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ path, statusline, vim, vim-airline ⬩ 📚 Archive
This post shows how to quickly view the full path of the currently open file in Vim.
Some of you might like to 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