]>
git.sthu.org Git - vimconf.git/blob - install.sh
7 if /usr
/bin
/vim
--version |
grep -q "NVIM"; then
11 if /usr
/bin
/vim
--version |
grep -q "$1"; then
12 echo "vim has support for $1."
14 echo "vim has no support for $1. Aborting."
21 if python3
-c "import $1" 2>/dev
/null
; then
22 echo "Python3 module '$1' exists."
24 echo "Python3 module '$1' missing. Aborting."
31 if which "$1" > /dev
/null
; then
34 echo "$1 not found. Aborting."
41 if fc-list |
grep -q "$1"; then
44 echo "Font $1 not found. Either install it or clear g:enable_plugin_devicons."
66 BACKUPDIR
=$
(mktemp
-d "$HOME/.vim-old-XXXXXXXX")
67 echo "Move old vim files to $BACKUPDIR"
68 backup
$HOME/.viminfo
$BACKUPDIR
69 backup
$HOME/.vimrc
$BACKUPDIR
70 backup
$HOME/.gvimrc
$BACKUPDIR
71 backup
$HOME/.config
/nvim
$BACKUPDIR
74 echo "Installing files..."
75 echo "# Empty" > $HOME/.viminfo
76 ln -s $HOME/.vim
/init.vim
$HOME/.vimrc
77 ln -s $HOME/.vim
/gvimrc
$HOME/.gvimrc
78 ln -s $HOME/.vim
$HOME/.config
/nvim
81 echo "vim-startify may complain about invalid viminfo file. It will"
82 echo "disappear once you opened the first file."
84 echo "Add this line to your shell configuration, e.g., ~/.profile, to"
85 echo "use vim as man pager:"
86 echo " export MANPAGER=\"view -c MANPAGER -\""