Permalink
Browse files

Merge pull request #1 from markus1189/master

Added loaded, compatible and version check
  • Loading branch information...
2 parents a5f32fb + dcfff5a commit 442a3e165148ed313d700d5598e8caf34467e911 @jeffkreeftmeijer committed Jan 30, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 plugin/number_toggle.vim
View
@@ -1,3 +1,11 @@
+" Prevent multi loads and disable in compatible mode
+" check if vim version is at least 7.3
+" (relativenumber is not supported below)
+if exists('g:loaded_numbertoggle') || &cp || v:version < 703
+ finish
+endif
+let g:loaded_numbertoggle = 1
+
" NumberToggle toggles between relative and absolute line numbers
function! NumberToggle()
if(&relativenumber == 1)

0 comments on commit 442a3e1

Please sign in to comment.