User login

Remove trailing whitespaces with vim search regex command

vim remove trailing whitespace

:%s/\s\+$//

http://vim.wikia.com/wiki/Remove_unwanted_spaces