ctrl + g will do this.
Also, I like:
set statusline="%f%m%r%h%w [%Y] [0x%02.2B]%< %F%=%4v,%4l %3p%% of %L"
What produces:
foo.c [C] [0x23] <code / foo.c 1, 1 2% of 50
Also, as mentioned (but now deleted), % will be replaced with the current file name. For example:
:! echo "current file:%"
current file: foo.c
Press ENTER or type command to continue
David Wolever Nov 06 '10 at 3:14 2010-11-06 03:14
source share