after/ftplugin/c.vim
¶
Enforce vim script implementation to reduce ambiguities and improve robustness:
scriptversion 4
Use :make
to compile C/C++, even without a Makefile:
if !filereadable('Makefile')
call filetypes#apply_ftplugin('makeprg=gcc -o %< %')
endif
See also
Add a little whitespace to comments:
call filetypes#apply_ftplugin('commentstring=/* %s */')
See also
Re-add C
includes where they’re useful:
setlocal path+=/usr/include