]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/ftplugin/c/autos.vim
Do not align on assignments in C-code
[dotfiles.git] / vim / .vim / ftplugin / c / autos.vim
1 setlocal commentstring=//\ %s
2
3 abbreviate <buffer> UCC unsigned char
4 abbreviate <buffer> u8 uint8_t *
5 abbreviate <buffer> U8 (uint8_t *)
6 let @e = "ywoassert(\epA!= NULL);\e"
7 nmap [cl O// clang-format off<ESC>
8 nmap ]cl o// clang-format on<ESC>
9
10 setlocal equalprg=cfmt.sh
11 command! -buffer Fmt normal mtgg=G'tz.