aboutsummaryrefslogtreecommitdiff
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
parentCorrect a few comments (diff)
downloadvim-toggle-flags-32eb59e1e377c31ebe695b51ccdc243602887fbe.tar.gz
vim-toggle-flags-32eb59e1e377c31ebe695b51ccdc243602887fbe.zip
Rename plugin and commands
-rw-r--r--doc/toggle_option_flags.txt22
-rw-r--r--plugin/toggle_option_flags.vim10
2 files changed, 16 insertions, 16 deletions
diff --git a/doc/toggle_option_flags.txt b/doc/toggle_option_flags.txt
index 0ab9e72..9f24ac3 100644
--- a/doc/toggle_option_flags.txt
+++ b/doc/toggle_option_flags.txt
@@ -1,29 +1,29 @@
-*toggle_option_flags.txt* For Vim version 7.0 Last change: 2018 May 30
+*toggle_flags.txt* For Vim version 7.0 Last change: 2018 May 30
-DESCRIPTION *toggle_option_flags*
+DESCRIPTION *toggle_flags*
- *:ToggleOptionFlag* *:ToggleOptionFlagLocal*
-This plugin provides `:ToggleOptionFlag` and `:ToggleOptionFlagLocal` commands
+ *:ToggleFlag* *:ToggleFlagLocal*
+This plugin provides `:ToggleFlag` and `:ToggleFlagLocal` commands
to toggle the values of options like |'formatoptions'| or |'complete'| that
have values comprised of single-character or comma-separated flags. The author
originally designed it for toggling flags in |'formatoptions'| quickly.
-EXAMPLES *toggle_option_flags-examples*
+EXAMPLES *toggle_flags-examples*
>
- :ToggleOptionFlag formatoptions a
- :ToggleOptionFlag switchbuf useopen
- :ToggleOptionFlagLocal shortmess I
+ :ToggleFlag formatoptions a
+ :ToggleFlag switchbuf useopen
+ :ToggleFlagLocal shortmess I
<
-REQUIREMENTS *toggle_option_flags-requirements*
+REQUIREMENTS *toggle_flags-requirements*
This plugin is only available if 'compatible' is not set. It also requires the
|+user_commands| Vim feature.
-AUTHOR *toggle_option_flags-author*
+AUTHOR *toggle_flags-author*
Written and maintained by Tom Ryder <tom@sanctum.geek.nz>.
-LICENSE *toggle_option_flags-license*
+LICENSE *toggle_flags-license*
Licensed for distribution under the same terms as Vim itself (see |license|).
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)