aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-19 21:52:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-19 21:52:26 +1200
commit5f18dc59c17ec366f8c66dd52f8df0ac9b663ef9 (patch)
treee65afea370c9b620012dbbe7e2e0005c06fb6a53
parentRename plugin and commands (diff)
downloadvim-toggle-flags-5f18dc59c17ec366f8c66dd52f8df0ac9b663ef9.tar.gz
vim-toggle-flags-5f18dc59c17ec366f8c66dd52f8df0ac9b663ef9.zip
Backport to Vim 6.0, add version load guard
-rw-r--r--doc/toggle_option_flags.txt2
-rw-r--r--plugin/toggle_option_flags.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/toggle_option_flags.txt b/doc/toggle_option_flags.txt
index 9f24ac3..81bf04d 100644
--- a/doc/toggle_option_flags.txt
+++ b/doc/toggle_option_flags.txt
@@ -1,4 +1,4 @@
-*toggle_flags.txt* For Vim version 7.0 Last change: 2018 May 30
+*toggle_flags.txt* For Vim version 6.0 Last change: 2018 July 19
DESCRIPTION *toggle_flags*
diff --git a/plugin/toggle_option_flags.vim b/plugin/toggle_option_flags.vim
index 1d396a3..4157164 100644
--- a/plugin/toggle_option_flags.vim
+++ b/plugin/toggle_option_flags.vim
@@ -8,7 +8,7 @@
if exists('g:loaded_toggle_flags') || &compatible
finish
endif
-if !has('user_commands')
+if !has('user_commands') || v:version < 600
finish
endif
let g:loaded_toggle_flags = 1