autocmd Filetype cpp set ts=4 sw=4 expandtab autocmd BufEnter,BufNew *.h set ts=4 sw=4 expandtab