I am using Vim for windows installed in Unix mode. Thanks to this site I now use the gf
command to go to a file under the cursor.
I\'m looking for a com
I haven't looked at your gf command but I imagine it uses the :e or :find command.
Assuming that this is correct, simply replace the :e or :find with :new (or :vnew for a vertical split) and the file will open in a new window instead of the same one.
e.g.
"Switch between header and cpp nmap ,s :find %:t:r.cppnmap ,S :new %:t:r.cpp nmap ,h :find %:t:r.h nmap ,H :new %:t:r.h nmap ,F :new =expand(" :t") nmap ,d :new =expand(" ")