chamindra / marvim

MARVIM - MAcro Repository for VIM "Give your most complex macros a name and store it for future recall and use"
GNU General Public License v2.0
34 stars 8 forks source link

Handle empty global variable #7

Closed omrisarig13 closed 5 years ago

omrisarig13 commented 5 years ago

@chamindra - I fixed issue #5. The fix is basically adding a test around the variable, to change if they are empty before mapping them.

When I did it, I also added a flag that would allow the user to not use those mappings, in case someone would want such functionality. It basically does the same thing as setting those variables to '', but it looks a bit nicer.

When I updated the documentation file I noticed that the tags in it was wrong (some tags weren't created as I previously expected), so I updated it as well.