|
@@ -1,19 +1,19 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
if [ -f "${HOME}/.vimrc" ]; then |
|
|
|
|
|
#mv ${HOME}/.vimrc $HOME .vimrc.old |
|
|
|
|
|
echo "There was already a .vimrc file, renamed to .vimrc.old" |
|
|
|
|
|
|
|
|
if [ -f "$HOME/.vimrc" ]; then |
|
|
|
|
|
mv $HOME/.vimrc $HOME/vimrc.old |
|
|
|
|
|
echo "There was already a .vimrc file, renamed to vimrc.old" |
|
|
fi |
|
|
fi |
|
|
if [ -d "${HOME}/.vim" ]; then |
|
|
|
|
|
#mv ${HOME}/.vim ${HOME} .vim.old |
|
|
|
|
|
echo "There was already a .vim folder, renamed to .vim.old" |
|
|
|
|
|
|
|
|
if [ -d "$HOME/.vim" ]; then |
|
|
|
|
|
mv $HOME/.vim $HOME/vim.old |
|
|
|
|
|
echo "There was already a .vim folder, renamed to vim.old" |
|
|
fi |
|
|
fi |
|
|
if [ -f "${HOME}/.gvimrc" ]; then |
|
|
|
|
|
mv ${HOME}/.gvimrc $HOME .gvimrc.old |
|
|
|
|
|
echo "There was already a .gvimrc file, renamed to .gvimrc.old" |
|
|
|
|
|
|
|
|
if [ -f "$HOME/.gvimrc" ]; then |
|
|
|
|
|
mv $HOME/.gvimrc $HOME/gvimrc.old |
|
|
|
|
|
echo "There was already a .gvimrc file, renamed to gvimrc.old" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
#cp vim $HOME/.vim |
|
|
|
|
|
#cp vimrc $HOME/.vimrc |
|
|
|
|
|
|
|
|
cp -r vim $HOME/.vim |
|
|
|
|
|
cp vimrc $HOME/.vimrc |
|
|
cp gvimrc $HOME/.gvimrc |
|
|
cp gvimrc $HOME/.gvimrc |
|
|
|
|
|
|