install: Check for curl and git
[vimconf.git] / install.sh
index aca030c47ed1d947a297e4527c3792daf89c003d..b6ce4d78021614f5f337c1df98464b347fe83617 100755 (executable)
@@ -34,8 +34,10 @@ check_prog()
 
 check_requirements()
 {
-    check_vim +python3
     check_prog aspell
+    check_prog curl
+    check_prog git
+    check_vim +python3
     check_py3 neovim
 }
 
@@ -54,7 +56,8 @@ install() {
     backup $HOME/.gvimrc $BACKUPDIR
     backup $HOME/.config/nvim $BACKUPDIR
 
-    echo "Installing files."
+    echo ""
+    echo "Installing files..."
     echo "# Empty" > $HOME/.viminfo
     ln -s $HOME/.vim/init.vim $HOME/.vimrc
     ln -s $HOME/.vim/gvimrc $HOME/.gvimrc
@@ -63,6 +66,10 @@ install() {
     echo ""
     echo "vim-startify may complain about invalid viminfo file. It will"
     echo "disappear once you opened the first file."
+    echo ""
+    echo "Add this line to your shell configuration, e.g., ~/.profile, to"
+    echo "use vim as man pager:"
+    echo "  export MANPAGER=\"view -c MANPAGER -\""
 }