Enter :set isfname
It'll show an OS dependent list of all characters considered being possibly part of a file name. On my system (Windows), the column :
appears in the list.
isfname=@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,=
Hence it won't be considered by gF as a separator between file name and line number. However if I add a space between them, the behaviour goes as documented.
Given how no sane person uses :
in a file name, if you want to use gF
on some compiler's output that says file.c:120
, you can add this to your vimrc :
set isfname-=:
(mind the -
before the =
)
If ever one day you need to open a file that has a :
in its name, you can always enter :set isfname+=:
to restore the column as a valid file name character for the duration of that session.
:map gf