Only define g:sum when it is needed.
Auto tag when saving files.