I’m having a problem when trying to make vim expand the file name under cursor. For example:
include("../path/file.php");
When the cursor is on file name and I type gf the file.php is opened just fine. However, when I remap the gf command in vimrc this way: map gf :tabnew <cfile><CR>, then instead of opening the file in a new tab gf just opens up an empty file.
Any idea what I am doing wrong?
It should be.