" Formatting
function! FormatOnSave()
    let l:lines = "all"
    pyf /Users/fellipe/dotfiles/clang-format.py
endfunction

map gq :pyf /Users/fellipe/dotfiles/clang-format.py<CR>
autocmd BufWritePre *.h,*.cc,*.cpp call FormatOnSave()

" Folding
setlocal foldmethod=syntax
autocmd Syntax normal zR

" Formatting
function! FormatOnSave()
    let l:lines = "all"
    pyf /Users/fellipe/dotfiles/clang-format.py
endfunction

map gq :pyf /Users/fellipe/dotfiles/clang-format.py<CR>
autocmd BufWritePre *.h,*.cc,*.cpp,*.c call FormatOnSave()

" Folding
setlocal foldmethod=syntax
autocmd Syntax normal zR

Format *.c files upon saving
Format *.c files upon saving

fellipecaetano/dotfiles,fellipecaetano/dotfiles,fellipecaetano/dotfiles,fellipecaetano/dotfiles,fellipecaetano/dotfiles