[vim] Fix :num and add unit test

`:num` broke some time ago, my mistake completely. Added unit test to prevent future regression.