]> 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 d211fd17e88d37dca30879d8080837abd14bf306..5b935260e2636887b9b2987ecd0d643dc357ce3a 100644 (file)
@@ -1,2 +1,4 @@
-setlocal equalprg=cfmt.sh
-command! -buffer Fmt normal mtgg=G'tz.
+set commentstring=//\ %s
+let @e = "ywoassert(\epA!= NULL);\e"
+nmap [cl O// clang-format off<ESC>
+nmap ]cl o// clang-format on<ESC>