Hi,

I would like to know how to define file specific settings (based on
file extension/type). I would prefer modifying my .vimrc file instead
of language specific .vim files. I am trying to achieve something
like-

if file-extension is .c or .cpp
   # expand tabs to spaces
   set sw=4 ts=4 expandtab
else if filetype is Makefile
   # don't expand tabs to spaces
   noexpandtab
endif

Any help would be appreciated. :)

Thanks,
Ram

Reply via email to