Little refactoring on trailing_spaces/preserve
Improve git alert to close vim if git user is not setup
Fix wrong behaviour in trailing spaces