aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 22:40:28 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 22:42:30 +1300
commit89056d45428f7f49bee32b3e938efed7555a5bbc (patch)
tree0cc07e79f8794e9482f6736d361a7c89833c384d
parentUse clearer method for 'formatoptions' flag toggle (diff)
downloaddotfiles-89056d45428f7f49bee32b3e938efed7555a5bbc.tar.gz
dotfiles-89056d45428f7f49bee32b3e938efed7555a5bbc.zip
Use full `execute` command, not `exec`
It's probably best not to use abbreviations in scripts.
-rw-r--r--vim/config/format.vim4
1 files 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