]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/ftplugin/c/autos.vim
Do not align on assignments in C-code
[dotfiles.git] / vim / .vim / ftplugin / c / autos.vim
index 5f264f3b9fbf66404504381ae0c44028b87c0c75..8de23f67c0295aaa01c98c07dcad73f9a69a3e2e 100644 (file)
@@ -4,6 +4,8 @@ abbreviate <buffer> UCC unsigned char
 abbreviate <buffer> u8 uint8_t *
 abbreviate <buffer> U8 (uint8_t *)
 let @e = "ywoassert(\epA!= NULL);\e"
+nmap [cl O// clang-format off<ESC>
+nmap ]cl o// clang-format on<ESC>
 
 setlocal equalprg=cfmt.sh
 command! -buffer Fmt normal mtgg=G'tz.