From 492fd5e0eab26242a0f9ea1b91980b7fd9ae7c29 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 09:06:33 +1200 Subject: Abbreviate plugin a bit more --- plugin/toggle_flags.vim | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'plugin/toggle_flags.vim') 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 " 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(, 0) -command -nargs=+ -complete=option - \ ToggleFlagLocal +command -nargs=+ -complete=option ToggleFlagLocal \ call toggle_flags#Toggle(, 1) -- cgit v1.2.3