Display name of the current file in vim? October 19, 2022 by Tarik :f (:file) will do same as <C-G>. :f! will give a untruncated version, if applicable.