aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 09:06:33 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 09:06:33 +1200
commit492fd5e0eab26242a0f9ea1b91980b7fd9ae7c29 (patch)
treebcc27015f01e35d16307b7e6c9085e0b6aa38437 /plugin
parentMerge branch 'release/v2.0.0' into develop (diff)
downloadvim-toggle-flags-492fd5e0eab26242a0f9ea1b91980b7fd9ae7c29.tar.gz
vim-toggle-flags-492fd5e0eab26242a0f9ea1b91980b7fd9ae7c29.zip
Abbreviate plugin a bit more
Diffstat (limited to 'plugin')
-rw-r--r--plugin/toggle_flags.vim11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugin/toggle_flags.vim b/plugin/toggle_flags.vim
index f300666..e8202e1 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
+command -nargs=+ -complete=option ToggleFlag
\ call toggle_flags#Toggle(<f-args>, 0)
-command -nargs=+ -complete=option
- \ ToggleFlagLocal
+command -nargs=+ -complete=option ToggleFlagLocal
\ call toggle_flags#Toggle(<f-args>, 1)