X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=install.sh;h=d50c6d9b8a46f5601b239f5c698c2eb517f05ea5;hp=4a5ee5aeeee503b92a308651ad673d55037c2ee2;hb=e48730286d6d104e380d33d6650cfe6f443022e9;hpb=7e541518bf6760c28a11594a4642b416634710f0 diff --git a/install.sh b/install.sh index 4a5ee5a..d50c6d9 100755 --- a/install.sh +++ b/install.sh @@ -4,6 +4,10 @@ set -e check_vim() { + if /usr/bin/vim --version | grep -q "NVIM"; then + return + fi + if /usr/bin/vim --version | grep -q "$1"; then echo "vim has support for $1." else @@ -38,7 +42,6 @@ check_font() echo "Font $1 found." else echo "Font $1 not found. Either install it or clear g:enable_plugin_devicons." - exit fi } @@ -74,13 +77,14 @@ install() { ln -s $HOME/.vim/gvimrc $HOME/.gvimrc ln -s $HOME/.vim $HOME/.config/nvim - 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 -\"" + cat << EOF +At the first start the plugins will be installed. Hence, at the first +start the plugin provided colorscheme is not available yet. + +Add this line to your shell configuration, e.g., ~/.profile, to +use vim as man pager: + export MANPAGER=\"view -c MANPAGER -\" +EOF }