]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Do not align on assignments in C-code
authorSergey Matveev <stargrave@stargrave.org>
Mon, 11 Apr 2022 08:22:30 +0000 (11:22 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 11 Apr 2022 08:22:30 +0000 (11:22 +0300)
clang-format/.clang-format
vim/.vim/ftplugin/c/autos.vim

index 6e2f208654b76005f348478a989d81aaf20986c2..6499a216bb4b9c9c8067c9e517cd2c21da464c8a 100644 (file)
@@ -3,7 +3,7 @@
     ColumnLimit: 88,
     IndentWidth: 4,
     AlignAfterOpenBracket: AlwaysBreak,
-    AlignConsecutiveAssignments: true,
+    AlignConsecutiveAssignments: false,
     AllowAllParametersOfDeclarationOnNextLine: false,
     AllowShortBlocksOnASingleLine: true,
     AlwaysBreakAfterReturnType: TopLevel,
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.