Please forgive me if this has already been answered, but I am wanting to do the following within vim
set tabstop=2 expandtab
However, I only want this to apply to .c and .h files (since I also use makefiles and they need the hard tab ).
My old computer broke that I had this already in the vimrc, and any help would be appreciated
Edit: Changing Vim indentation behavior by file type seems to have answered a similar question, but I cannot find a way to make this work for the .h files unless I am being dumb