diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 09:06:33 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 09:06:33 +1200 |
commit | 492fd5e0eab26242a0f9ea1b91980b7fd9ae7c29 (patch) | |
tree | bcc27015f01e35d16307b7e6c9085e0b6aa38437 | |
parent | Merge branch 'release/v2.0.0' into develop (diff) | |
download | vim-toggle-flags-492fd5e0eab26242a0f9ea1b91980b7fd9ae7c29.tar.gz vim-toggle-flags-492fd5e0eab26242a0f9ea1b91980b7fd9ae7c29.zip |
Abbreviate plugin a bit more
-rw-r--r-- | plugin/toggle_flags.vim | 11 |
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) |