aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)