From: Stefan Huber Date: Thu, 6 Jan 2022 08:44:13 +0000 (+0100) Subject: plugins: Add clang format mappings X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=7b6db222395eeac91fae9e07ba9327dd0cc45020;p=vimconf.git plugins: Add clang format mappings --- diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index 443a012..a9fe99c 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -282,4 +282,12 @@ EOF " Do not show diagnostic window of vim-clang let g:clang_diagsopt = '' + augroup ClangFormatSettings + au! + au FileType c,cpp,objc,javascript,java,typescript,protobuf,cuda,vala + \ vmap cf (operator-clang-format) + au FileType c,cpp,objc,javascript,java,typescript,protobuf,cuda,vala + \ nmap cf :ClangFormat + augroup END + endfunction