Fix directories in setup-vim.sh

This commit is contained in:
Shaun Reed 2019-09-06 22:55:52 +00:00
parent eed943bf0f
commit 255673b519
1 changed files with 6 additions and 5 deletions

View File

@ -40,16 +40,17 @@ if [ $cChoice -eq 1 ] ; then
sudo mkdir -pv /etc/config-vim/backup/ sudo mkdir -pv /etc/config-vim/backup/
printf "\n${GREEN}Backup directory created - /etc/config-vim/backup/${NORMAL}\n" printf "\n${GREEN}Backup directory created - /etc/config-vim/backup/${NORMAL}\n"
# Set global vimrc defaults to klips settings
sudo cp /etc/config-vim/configs/.vimrc /usr/share/vim/vimfiles/vimrc
# Stash the current .vimrc # Stash the current .vimrc
sudo mv -bv ~/.vimrc /etc/config-vim/backup/ sudo mv -bv ~/.vimrc /etc/config-vim/backup/
printf "${RED}Your local .vimrc has been stashed in /etc/config-vim/backup/${NORMAL}\n\n" printf "${RED}Your local .vimrc has been stashed in /etc/config-vim/backup/${NORMAL}\n\n"
# Copy our cloned config into the user home directory # Copy our cloned config into the user home directory
sudo cp /etc/config-vim/configs/.vimrc ~/ sudo cp /etc/config-vim/configs/.vimrc ~/
printf "${GREEN}New /usr/share/vim/vimfiles/rc configuration installed.${NORMAL}\n" printf "${GREEN}New ~/.vimrc configuration installed.${NORMAL}\n"
# Copy our cloned config into the global user directories
sudo cp /etc/config-vim/configs/.vimrc /usr/share/vim/vimfiles/vimrc
sudo cp /etc/config-vim/configs/.vimrc /etc/vim/vimrc
# Reinstall Pathogen plugin manager for vim # Reinstall Pathogen plugin manager for vim
# https://github.com/tpope/vim-pathogen # https://github.com/tpope/vim-pathogen
@ -59,7 +60,7 @@ if [ $cChoice -eq 1 ] ; then
# Install Pathogen # Install Pathogen
printf "\n${GREEN}Installing Pathogen plugin manager for Vim....\n" printf "\n${GREEN}Installing Pathogen plugin manager for Vim....\n"
printf "\nIf they don't exist, we will create the following directories:\n" printf "\nIf they don't exist, we will create the following directories:\n"
printf "/usr/share/vim/vimfiles//autoload/ ~/.vim/bundle/${NORMAL}" printf "/usr/share/vim/vimfiles/autoload/ /usr/share/vim/vimfiles/bundle/${NORMAL}"
mkdir -pv /usr/share/vim/vimfiles/autoload /usr/share/vim/vimfiles/bundle && \ mkdir -pv /usr/share/vim/vimfiles/autoload /usr/share/vim/vimfiles/bundle && \
sudo curl -LSso /usr/share/vim/vimfiles/autoload/pathogen.vim https://tpo.pe/pathogen.vim sudo curl -LSso /usr/share/vim/vimfiles/autoload/pathogen.vim https://tpo.pe/pathogen.vim
printf "\n${GREEN}Pathogen has been installed! Plugins plugins can now be easily installed.\n"\ printf "\n${GREEN}Pathogen has been installed! Plugins plugins can now be easily installed.\n"\