I\'m trying to find the name of the file I\'m editing inside of Vim. So I can use it to map F5 to compile this file. Would of course be great if I could recognize
You can use the % character in vim commands to get the current filename with the extension. For example,
:!javac %
to run javac on the current file.
You can find out more with
:help filename-modifiers