set tabstop=2 set softtabstop=2 set shiftwidth=2 set textwidth=79 set expandtab autoindent set fileformat=unix function! Formatonsave() let l:formatdiff = 1 silent %! clang-format endfunction