Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from markus1189/master

Added loaded, compatible and version check
  • Loading branch information...
commit 442a3e165148ed313d700d5598e8caf34467e911 2 parents a5f32fb + dcfff5a
@jeffkreeftmeijer authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 plugin/number_toggle.vim
View
8 plugin/number_toggle.vim
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.