]>
git.sthu.org Git - vimconf.git/blob - install.sh
7 if /usr
/bin
/vim
--version |
grep -q "$1"; then
8 echo "vim has support for $1."
10 echo "vim has no support for $1. Aborting."
17 if python3
-c "import $1" 2>/dev
/null
; then
18 echo "Python3 module '$1' exists."
20 echo "Python3 module '$1' missing. Aborting."
27 if which "$1" > /dev
/null
; then
30 echo "$1 not found. Aborting."
52 BACKUPDIR
=$
(mktemp
-d "$HOME/.vim-old-XXXXXXXX")
53 echo "Move old vim files to $BACKUPDIR"
54 backup
$HOME/.viminfo
$BACKUPDIR
55 backup
$HOME/.vimrc
$BACKUPDIR
56 backup
$HOME/.gvimrc
$BACKUPDIR
57 backup
$HOME/.config
/nvim
$BACKUPDIR
60 echo "Installing files..."
61 echo "# Empty" > $HOME/.viminfo
62 ln -s $HOME/.vim
/init.vim
$HOME/.vimrc
63 ln -s $HOME/.vim
/gvimrc
$HOME/.gvimrc
64 ln -s $HOME/.vim
$HOME/.config
/nvim
67 echo "vim-startify may complain about invalid viminfo file. It will"
68 echo "disappear once you opened the first file."
70 echo "Add this line to your shell configuration, e.g., ~/.profile, to"
71 echo "use vim as man pager:"
72 echo " export MANPAGER=\"view -c MANPAGER -\""