Add spell file to vim

This commit is contained in:
Chocobozzz 2016-04-17 22:11:42 +02:00
parent 6bd06e8ecf
commit a4299a760a
1 changed files with 7 additions and 2 deletions

View File

@ -1,13 +1,13 @@
#!/bin/sh #!/bin/sh
gitlink="https://gitlab.cpy.re/florian/unixconf/repository/archive.zip?ref=master" gitlink="https://gitlab.cpy.re/florian/unixconf/repository/archive.zip?ref=master"
musthaves="zsh wget git vim ssh-agent urxvt unzip ruby" musthaves="zsh wget git vim ssh-agent urxvt unzip ruby ctags"
for musthave in $musthaves; do for musthave in $musthaves; do
which "$musthave" >/dev/null 2>&1 which "$musthave" >/dev/null 2>&1
if [ "$?" -ne 0 ]; then if [ "$?" -ne 0 ]; then
echo "You should install ${musthave}." echo "You should install ${musthave}."
echo "On Debian: apt-get install zsh wget git vim openssh-client rxvt-unicode unzip ruby" echo "On Ubuntu 14.04: apt-get install zsh wget git vim openssh-client rxvt-unicode unzip ruby exuberant-ctags"
exit exit
fi fi
done done
@ -39,5 +39,10 @@ fi
if (! test -d "$HOME/.vim/bundle" ); then if (! test -d "$HOME/.vim/bundle" ); then
mkdir "$HOME/.vim/bundle" mkdir "$HOME/.vim/bundle"
fi fi
if (! test -d "$HOME/.vim/spell" ); then
mkdir "$HOME/.vim/spell"
fi
cd "$HOME/.vim/spell" || exit
wget http://ftp.vim.org/vim/runtime/spell/fr.utf-8.spl
git clone https://github.com/VundleVim/Vundle.vim.git "$HOME/.vim/bundle/vundle" git clone https://github.com/VundleVim/Vundle.vim.git "$HOME/.vim/bundle/vundle"
vim +PluginInstall +qall vim +PluginInstall +qall