Trailing whitespaces for vim and log function for bash