vim: Cleanup bash template

* remove some comments I end up deleting anyway
* moved variables before functions
* add logger example and explain the difference