dotfiles/dot_config/nvim/langprefs/clang.vim

12 lines
197 B
VimL

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