Refactor install script functions.
Set $EDITOR to vim.