]>
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."
67 BACKUPDIR
=$
(mktemp
-d "$HOME/.vim-old-XXXXXXXX")
68 echo "Move old vim files to $BACKUPDIR"
69 backup
$HOME/.viminfo
$BACKUPDIR
70 backup
$HOME/.vimrc
$BACKUPDIR
71 backup
$HOME/.gvimrc
$BACKUPDIR
72 backup
$HOME/.config
/nvim
$BACKUPDIR
75 echo "Installing files..."
76 echo "# Empty" > $HOME/.viminfo
77 ln -s $HOME/.vim
/init.vim
$HOME/.vimrc
78 ln -s $HOME/.vim
/gvimrc
$HOME/.gvimrc
79 ln -s $HOME/.vim
$HOME/.config
/nvim
82 At the first start the plugins will be installed. Hence, at the first
83 start the plugin provided colorscheme is not available yet.
85 Add this line to your shell configuration, e.g., ~/.profile, to
87 export MANPAGER=\"vi -c ASMANPAGER -\"