]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/ftplugin/c/autos.vim
setlocal is excess in ftplugin
[dotfiles.git] / vim / .vim / ftplugin / c / autos.vim
index 3e821d6ada561a6bc6f083f3202dfe8429b61c63..5b935260e2636887b9b2987ecd0d643dc357ce3a 100644 (file)
@@ -1,9 +1,4 @@
-setlocal commentstring=//\ %s
-
-abbreviate UCC unsigned char
-abbreviate u8 uint8_t *
-abbreviate U8 (uint8_t *)
+set commentstring=//\ %s
 let @e = "ywoassert(\epA!= NULL);\e"
-
-setlocal equalprg=cfmt.sh
-command! -buffer Fmt normal mtgg=G'tz.
+nmap [cl O// clang-format off<ESC>
+nmap ]cl o// clang-format on<ESC>