dotfiles/dot_config/nvim/langprefs/clang.vim

12 lines
197 B
VimL
Raw Permalink Normal View History

2024-07-13 13:41:00 +03:00
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