Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:brianleroux/quick-vim

  • Loading branch information...
commit 69f6764fe89326d29d9bb83c31d3efeccc48ac0f 2 parents 6d82ff9 + 13cc4d1
@brianleroux authored
Showing with 17 additions and 5 deletions.
  1. +1 −1  README.md
  2. +16 −4 quick-vim
View
2  README.md
@@ -19,7 +19,7 @@ For years I've found myself trying to make THE ULTIMATE VIM CONFIGURATION. When
- three use cases: install, upgrade, and uninstall
- bash and git are the only deps
-- no goofy gui tty business; this a vimrc for a vim that lives in a shell
+- no goofy gui tty business; this is a vimrc for a vim that lives in a shell
- pathogen for managing deps
- bundles are limited to the simple stuff and not relearning things your shell does better: like git
- no weird bundles that require re-compilation of vim or outside scripting languages
View
20 quick-vim
@@ -23,8 +23,14 @@ backup () {
echo 'skipping backup'
else
mkdir -p ./backup
- mv ~/.vimrc ./backup/.vimrc
- mv ~/.vim ./backup/.vim
+ if [ -e ~/.vimrc ]
+ then
+ mv ~/.vimrc ./backup/.vimrc
+ fi
+ if [ -e ~/.vim ]
+ then
+ mv ~/.vim ./backup/.vim
+ fi
fi
}
@@ -51,8 +57,14 @@ uninstall () {
then
rm ~/.vimrc
rm -rf ~/.vim
- mv ./backup/.vimrc ~/.vimrc
- mv ./backup/.vim ~/.vim
+ if [ -e ./backup/.vimrc ]
+ then
+ mv ./backup/.vimrc ~/.vimrc
+ fi
+ if [ -e ./backup/.vim ]
+ then
+ mv ./backup/.vim ~/.vim
+ fi
rm -rf ./backup
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.