Hi,
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?
EDIT: Sorry, I just found that SO is scrambling my map line and I couldn't figure how how to fix it. Instead of map gf :tabnew <cfile><CR> it should read map gf :tabnew cfile CR (where cfile and CR are enclosed in less/greater than signs.)