aboutsummaryrefslogtreecommitdiff
path: root/plugin/toggle_option_flags.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-19 21:51:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-19 21:51:25 +1200
commit32eb59e1e377c31ebe695b51ccdc243602887fbe (patch)
tree19798b6c5e49d6b0847fd68858f665a6370393db /plugin/toggle_option_flags.vim
parentCorrect a few comments (diff)
downloadvim-toggle-flags-32eb59e1e377c31ebe695b51ccdc243602887fbe.tar.gz
vim-toggle-flags-32eb59e1e377c31ebe695b51ccdc243602887fbe.zip
Rename plugin and commands
Diffstat (limited to 'plugin/toggle_option_flags.vim')
-rw-r--r--plugin/toggle_option_flags.vim10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugin/toggle_option_flags.vim b/plugin/toggle_option_flags.vim
index 49142ed..1d396a3 100644
--- a/plugin/toggle_option_flags.vim
+++ b/plugin/toggle_option_flags.vim
@@ -1,17 +1,17 @@
"
-" toggle_option_flags.vim: Provide commands to toggle flags in grouped options
+" toggle_flags.vim: Provide commands to toggle flags in grouped options
" like 'formatoptions', 'shortmess', 'complete', 'switchbuf', etc.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('g:loaded_toggle_option_flags') || &compatible
+if exists('g:loaded_toggle_flags') || &compatible
finish
endif
if !has('user_commands')
finish
endif
-let g:loaded_toggle_option_flags = 1
+let g:loaded_toggle_flags = 1
" Show an error-highlighted message and beep, but without a real :echoerr
function! s:Error(message)
@@ -96,8 +96,8 @@ endfunction
" User commands wrapping around calls to the above function
command -nargs=+ -complete=option
- \ ToggleOptionFlag
+ \ ToggleFlag
\ call <SID>Toggle(<f-args>, 0)
command -nargs=+ -complete=option
- \ ToggleOptionFlagLocal
+ \ ToggleFlagLocal
\ call <SID>Toggle(<f-args>, 1)