From d838b5311d7debb9b8e185c5a0a0c6abd84e09e4 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 13 Apr 2022 11:46:16 +0300 Subject: [PATCH] setlocal is excess in ftplugin --- vim/.vim/ftplugin/c/autos.vim | 2 +- vim/.vim/ftplugin/c/fmt.vim | 2 +- vim/.vim/ftplugin/gitcommit/autos.vim | 4 ++-- vim/.vim/ftplugin/go/autos.vim | 4 ++-- vim/.vim/ftplugin/python/ignores.vim | 2 +- vim/.vim/ftplugin/texinfo/autos.vim | 2 +- vim/.vim/ftplugin/yaml/autos.vim | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/vim/.vim/ftplugin/c/autos.vim b/vim/.vim/ftplugin/c/autos.vim index d89b689..5b93526 100644 --- a/vim/.vim/ftplugin/c/autos.vim +++ b/vim/.vim/ftplugin/c/autos.vim @@ -1,4 +1,4 @@ -setlocal commentstring=//\ %s +set commentstring=//\ %s let @e = "ywoassert(pA!= NULL);" nmap [cl O// clang-format off nmap ]cl o// clang-format on diff --git a/vim/.vim/ftplugin/c/fmt.vim b/vim/.vim/ftplugin/c/fmt.vim index d211fd1..0c50d99 100644 --- a/vim/.vim/ftplugin/c/fmt.vim +++ b/vim/.vim/ftplugin/c/fmt.vim @@ -1,2 +1,2 @@ -setlocal equalprg=cfmt.sh +set equalprg=cfmt.sh command! -buffer Fmt normal mtgg=G'tz. diff --git a/vim/.vim/ftplugin/gitcommit/autos.vim b/vim/.vim/ftplugin/gitcommit/autos.vim index dbd7f4a..fe6325e 100644 --- a/vim/.vim/ftplugin/gitcommit/autos.vim +++ b/vim/.vim/ftplugin/gitcommit/autos.vim @@ -1,2 +1,2 @@ -setlocal spell -setlocal textwidth=72 +set spell +set textwidth=72 diff --git a/vim/.vim/ftplugin/go/autos.vim b/vim/.vim/ftplugin/go/autos.vim index 56267cf..95c4afc 100644 --- a/vim/.vim/ftplugin/go/autos.vim +++ b/vim/.vim/ftplugin/go/autos.vim @@ -1,6 +1,6 @@ -setlocal noexpandtab +set noexpandtab let b:defsplit_shift=" " -setlocal makeprg=go\ build +set makeprg=go\ build let @e = "^iif err = A; err != nil {o " let @r = "oif err != nil { }O " diff --git a/vim/.vim/ftplugin/python/ignores.vim b/vim/.vim/ftplugin/python/ignores.vim index fc306c6..cbc089f 100644 --- a/vim/.vim/ftplugin/python/ignores.vim +++ b/vim/.vim/ftplugin/python/ignores.vim @@ -1 +1 @@ -setlocal wildignore+=**/_build/*,**/.hypothesis +set wildignore+=**/_build/*,**/.hypothesis diff --git a/vim/.vim/ftplugin/texinfo/autos.vim b/vim/.vim/ftplugin/texinfo/autos.vim index b7664fd..8af4e1e 100644 --- a/vim/.vim/ftplugin/texinfo/autos.vim +++ b/vim/.vim/ftplugin/texinfo/autos.vim @@ -1,2 +1,2 @@ abbreviate \t @tab -setlocal commentstring=@c\ %s +set commentstring=@c\ %s diff --git a/vim/.vim/ftplugin/yaml/autos.vim b/vim/.vim/ftplugin/yaml/autos.vim index 6f78fab..7b7ac76 100644 --- a/vim/.vim/ftplugin/yaml/autos.vim +++ b/vim/.vim/ftplugin/yaml/autos.vim @@ -1 +1 @@ -setlocal shiftwidth=2 +set shiftwidth=2 -- 2.44.0