From 89056d45428f7f49bee32b3e938efed7555a5bbc Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 30 Oct 2017 22:40:28 +1300 Subject: Use full `execute` command, not `exec` It's probably best not to use abbreviations in scripts. --- vim/config/format.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/config/format.vim b/vim/config/format.vim index 1a9ac986..75d8802a 100644 --- a/vim/config/format.vim +++ b/vim/config/format.vim @@ -22,9 +22,9 @@ endif if has('eval') function! s:ToggleFormatFlag(flag) if &l:formatoptions =~# a:flag - silent! exec 'setlocal formatoptions-=' . a:flag + silent! execute 'setlocal formatoptions-=' . a:flag else - silent! exec 'setlocal formatoptions+=' . a:flag + silent! execute 'setlocal formatoptions+=' . a:flag endif setlocal formatoptions? endfunction -- cgit v1.2.3