Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim using gf with spaces in filenames

In gVim if the cursor is over a filename (like "C:\Program Files\Vim\vim71\README.txt" ) which contains spaces then using 'gf' fails.

I found the isfname option but the documentation says one should avoid using spaces.

Is there I can make gVim open files under these circumstances ?

like image 543
Richard Avatar asked Oct 29 '09 11:10

Richard


Video Answer


1 Answers

You can select text in visual mode and then do a gf on it, that get's round the problem to some extent.

like image 196
Benj Avatar answered Oct 06 '22 15:10

Benj