saltstack/salt — pull request #1271 by baijum (2012-05-13 08:55:45+00:00)
Title: remove trailing whitespaces

This is how I removed trailing whitespaces

Run `pep8` command:
```
pep8 --select=W291,W293 salt tests > ws.txt
```

Open the pep8 output with `-q` option:
```
vim -q ws.txt
```
Inside Vim, set two options:
```
:nnoremap :let _s=@/:%s/\s\+$//e:let @/=_s:nohl
:map z :w:cnfile
```

Press down `z` key multiple times