Use function! to avoid errors on re-sourcing

Using `function` (instead of `function!`) makes Vim show an error message if
vimrc is re-sourced.