the gf motion will jump to the filename under the cursor

The suffixadd option needs to be set, although most common filetype plugins should handle this automatically.