aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-29 14:57:33 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-29 14:57:33 +1200
commit6f3ecf4ad03b1d83994317f4e1c3138741c5c613 (patch)
treee5715830782e2eabfe9b7ced29fe5fc6baffd2d0 /plugin
parentMerge branch 'hotfix/v0.3.2' into develop (diff)
downloadvim-strip-trailing-whitespace-6f3ecf4ad03b1d83994317f4e1c3138741c5c613.tar.gz
vim-strip-trailing-whitespace-6f3ecf4ad03b1d83994317f4e1c3138741c5c613.zip
Add version guard
Diffstat (limited to 'plugin')
-rw-r--r--plugin/strip_trailing_whitespace.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/strip_trailing_whitespace.vim b/plugin/strip_trailing_whitespace.vim
index c2a5161..72a43a8 100644
--- a/plugin/strip_trailing_whitespace.vim
+++ b/plugin/strip_trailing_whitespace.vim
@@ -8,6 +8,9 @@
if exists('g:loaded_strip_trailing_whitespace') || &compatible
finish
endif
+if v:version < 600
+ finish
+endif
let g:loaded_strip_trailing_whitespace = 1
" Define function for stripping whitespace