Today I learned: How to show current buffer's path in Vim's normal mode

In case you are like me and opted for just having the filename showing in status line, this might have its limitations.
Indeed, if you have two buffers sharing the same filename (e.g. links.scss), but displaying files stored at different locations, you may want to know which one is which one (e.g. settings/links.css or mixins/links.scss).

In normal mode, just type the shortcut Ctrl-g and the file's path will be printed in the command line area.

An alternative, is to use the :f command which is short for :file and achieve the same goal.


Vim documentation