From 7e69cfc14bce6cecc6a567afd061d234883197dd Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 12 Apr 2022 11:20:10 +0300 Subject: [PATCH] Split multistring vimscript --- vim/.vim/ftplugin/c/abs.vim | 3 +++ vim/.vim/ftplugin/c/autos.vim | 7 ------- vim/.vim/ftplugin/c/fmt.vim | 2 ++ 3 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 vim/.vim/ftplugin/c/abs.vim create mode 100644 vim/.vim/ftplugin/c/fmt.vim diff --git a/vim/.vim/ftplugin/c/abs.vim b/vim/.vim/ftplugin/c/abs.vim new file mode 100644 index 0000000..1f99c4c --- /dev/null +++ b/vim/.vim/ftplugin/c/abs.vim @@ -0,0 +1,3 @@ +abbreviate ucc unsigned char * +abbreviate u8 uint8_t * +abbreviate U8 (uint8_t *) diff --git a/vim/.vim/ftplugin/c/autos.vim b/vim/.vim/ftplugin/c/autos.vim index 8de23f6..d89b689 100644 --- a/vim/.vim/ftplugin/c/autos.vim +++ b/vim/.vim/ftplugin/c/autos.vim @@ -1,11 +1,4 @@ setlocal commentstring=//\ %s - -abbreviate UCC unsigned char -abbreviate u8 uint8_t * -abbreviate U8 (uint8_t *) let @e = "ywoassert(pA!= NULL);" nmap [cl O// clang-format off nmap ]cl o// clang-format on - -setlocal equalprg=cfmt.sh -command! -buffer Fmt normal mtgg=G'tz. diff --git a/vim/.vim/ftplugin/c/fmt.vim b/vim/.vim/ftplugin/c/fmt.vim new file mode 100644 index 0000000..d211fd1 --- /dev/null +++ b/vim/.vim/ftplugin/c/fmt.vim @@ -0,0 +1,2 @@ +setlocal equalprg=cfmt.sh +command! -buffer Fmt normal mtgg=G'tz. -- 2.44.0