Search code examples
vim

Vim problem with gf command


I am using Vim and I have set the path (set path+= c:/work/etc/etc) to my project directory (for C#), but still using command 'gf' give me error:

E:447 Can't find file.

Is there anything I am doing wrong over here?


Solution

  • First can you open the file using :find file.name ? (:help find for more info). If this does not work then your path is wrong. If :find does locate your file then do the following:

    1. Insure that you are not in Visual/Insert mode
    2. Place cursor on the first letter of the filename and press gf