mirror of
https://github.com/amix/vimrc
synced 2025-02-28 14:12:51 +08:00

If user has some vimrc already present then it will be saved as $HOME/.oldvimrc and then new vimrc will be created.
12 lines
286 B
Bash
Executable File
12 lines
286 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Save previous vimrc.
|
|
if [ -f $HOME/.vimrc ]; then
|
|
mv ~/.vimrc ~/.oldvimrc
|
|
echo "Saved previous vimrc as $HOME/.oldvimrc"
|
|
fi
|
|
cd ~/.vim_runtime
|
|
cat ~/.vim_runtime/vimrcs/basic.vim > ~/.vimrc
|
|
echo "Installed the Basic Vim configuration successfully! Enjoy :-)"
|