jeffkreeftmeijer / vim-numbertoggle

Toggles between hybrid and absolute line numbers automatically
https://jeffkreeftmeijer.com/vim-number/#automatic-toggling-between-line-number-modes
MIT License
682 stars 49 forks source link

Added loaded, compatible and version check #1

Closed markus1189 closed 12 years ago

markus1189 commented 12 years ago

Hey,

i just read your post about vim's relativenumber option. (Did not know that one, thanks!) I downloaded your plugin and added a few lines:

maybe you want to have a look!

best regards

jeffkreeftmeijer commented 12 years ago

Hey Markus,

Your changes look good, I understand why we need to check if the version number is above 7.3, if nocompatible is set and if the plugin has been loaded yet. I'm not sure about the let g:loaded_numbertoggle = 1-implementation, but I'm sure it works and I have no idea how to improve it, so I'll just merge it in.

Thanks for helping out! :)