Config File Collection
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

add_vim 522B

123456789101112131415161718192021
  1. #!/bin/zsh
  2. #
  3. SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
  4. if [[ ! -e ~/.vim ]]; then
  5. mkdir -v ~/.vim
  6. fi
  7. if [[ ! -e ~/.cache/vim ]]; then
  8. mkdir -v ~/.cache/vim
  9. fi
  10. if [[ (-e ~/.vimrc || -e ~/.vim/skeletons) ]]; then
  11. echo "A vim configuration already exists (~/.vimrc or ~/.vim/skeletons)"
  12. echo "Remove this configuration and start the script again"
  13. else
  14. echo "Creating base links"
  15. ln -vs $SCRIPTPATH/.vimrc ~/.vimrc
  16. ln -vs $SCRIPTPATH/.vim/skeletons ~/.vim/skeletons
  17. fi