diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 22:40:28 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 22:42:30 +1300 |
commit | 89056d45428f7f49bee32b3e938efed7555a5bbc (patch) | |
tree | 0cc07e79f8794e9482f6736d361a7c89833c384d /vim | |
parent | Use clearer method for 'formatoptions' flag toggle (diff) | |
download | dotfiles-89056d45428f7f49bee32b3e938efed7555a5bbc.tar.gz dotfiles-89056d45428f7f49bee32b3e938efed7555a5bbc.zip |
Use full `execute` command, not `exec`
It's probably best not to use abbreviations in scripts.
Diffstat (limited to 'vim')
-rw-r--r-- | vim/config/format.vim | 4 |
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 |