Skip to content

Commit

Permalink
Add vim_init_setup.sh file
Browse files Browse the repository at this point in the history
  • Loading branch information
seelk07 authored May 1, 2023
1 parent 4996be3 commit ecda665
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions vim_init_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

echo "---------------------------------"
echo "Creating VIM directories"
echo "---------------------------------"
mkdir -p ~/.vim ~/.vim/autoload ~/.vim/backup ~/.vim/colors ~/.vim/plugged

echo "---------------------------------"
echo "Installing vim-plug"
echo "---------------------------------"
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

echo "---------------------------------"
echo "Downloading and moving .vimrc file to $HOME"
echo "---------------------------------"
#wget -N https://raw.githubusercontent.com/seelk07/linux/main/.vimrc -P /tmp
curl -fLo /tmp/.vimrc https://raw.githubusercontent.com/seelk07/linux/main/.vimrc
mv -i /tmp/.vimrc ~/.vimrc

echo "---------------------------------"
echo "Installing VIM pluggins"
echo "---------------------------------"
vim -c "PlugInstall"

0 comments on commit ecda665

Please sign in to comment.