]>
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."
37 if fc-list |
grep -q "$1"; then
40 echo "Font $1 not found. Either install it or clear g:enable_plugin_devicons."
63 BACKUPDIR
=$
(mktemp
-d "$HOME/.vim-old-XXXXXXXX")
64 echo "Move old vim files to $BACKUPDIR"
65 backup
$HOME/.viminfo
$BACKUPDIR
66 backup
$HOME/.vimrc
$BACKUPDIR
67 backup
$HOME/.gvimrc
$BACKUPDIR
68 backup
$HOME/.config
/nvim
$BACKUPDIR
71 echo "Installing files..."
72 echo "# Empty" > $HOME/.viminfo
73 ln -s $HOME/.vim
/init.vim
$HOME/.vimrc
74 ln -s $HOME/.vim
/gvimrc
$HOME/.gvimrc
75 ln -s $HOME/.vim
$HOME/.config
/nvim
78 echo "vim-startify may complain about invalid viminfo file. It will"
79 echo "disappear once you opened the first file."
81 echo "Add this line to your shell configuration, e.g., ~/.profile, to"
82 echo "use vim as man pager:"
83 echo " export MANPAGER=\"view -c MANPAGER -\""