Display name of the current file in vim?

Drew LeSueur picture Drew LeSueur · Nov 6, 2010 · Viewed 76.2k times · Source

How do you display the filename of the file you are working on in vim?

Answer

smilingthax picture smilingthax · Nov 6, 2010

:f (:file) will do same as <C-G>. :f! will give a untruncated version, if applicable.