git: refactored setup-vim to use common functions and added gitconfig