Vim’s gf command to open include files in C source code

You can open the file whose name is under the cursor with gf, (goto file). Recently, while browsing the linux source code, I wanted to do a gf on a file whose name appeared inside an include statement. For instance, if the line was: #include <linux/can.h> I wanted to open the can.h file by havingContinue reading “Vim’s gf command to open include files in C source code”