aboutsummaryrefslogtreecommitdiff
path: root/plugin/toggle_flags.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 12:58:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 12:58:38 +1200
commit4d4883b58ccfff2d3ee6d5c871ddaf623e2eff3c (patch)
tree1b367f5599501e3e360089a392b75fbe0b09697f /plugin/toggle_flags.vim
parentMerge branch 'release/v2.0.0' (diff)
parentBump VERSION (diff)
downloadvim-toggle-flags-4d4883b58ccfff2d3ee6d5c871ddaf623e2eff3c.tar.gz
vim-toggle-flags-4d4883b58ccfff2d3ee6d5c871ddaf623e2eff3c.zip
Merge branch 'release/v3.0.0'v3.0.0
* release/v3.0.0: Refactor completely, dropping Vim 6.x cruft Correct a comment Abbreviate plugin a bit more
Diffstat (limited to 'plugin/toggle_flags.vim')
-rw-r--r--plugin/toggle_flags.vim15
1 files changed, 5 insertions, 10 deletions
diff --git a/plugin/toggle_flags.vim b/plugin/toggle_flags.vim
index f300666..5e5bdf7 100644
--- a/plugin/toggle_flags.vim
+++ b/plugin/toggle_flags.vim
@@ -5,18 +5,13 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('loaded_toggle_flags') || &compatible
- finish
-endif
-if v:version < 700
+if exists('loaded_toggle_flags') || &compatible || v:version < 700
finish
endif
let loaded_toggle_flags = 1
" User commands wrapping around calls to the above function
-command -nargs=+ -complete=option
- \ ToggleFlag
- \ call toggle_flags#Toggle(<f-args>, 0)
-command -nargs=+ -complete=option
- \ ToggleFlagLocal
- \ call toggle_flags#Toggle(<f-args>, 1)
+command -nargs=+ -complete=option ToggleFlag
+ \ call toggle_flags#(<f-args>, 0)
+command -nargs=+ -complete=option ToggleFlagLocal
+ \ call toggle_flags#(<f-args>, 1)