]>
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 At the first start the plugins will be installed. Hence, at the first
82 start the plugin provided colorscheme is not available yet.
84 Add this line to your shell configuration, e.g., ~/.profile, to
86 export MANPAGER=\"view -c MANPAGER -\"