-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
39 lines (31 loc) · 828 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
# backup vimrc user
if [ -f "$HOME/.vimrc" ]
then
echo "[!] Backup vim user config in $HOME/.vimrc.bkp"
mv $HOME/.vimrc $HOME/.vimrc.bkp
fi
echo '
set runtimepath+=~/.vimnimum
source ~/.vimnimum/vimrcs/plug.vim
source ~/.vimnimum/vimrcs/plugins.vim
source ~/.vimnimum/vimrcs/generals.vim
source ~/.vimnimum/vimrcs/mappings.vim
source ~/.vimnimum/vimrcs/filetypes.vim
' > ~/.vimrc
# create undodir
if [ -d "$HOME/.vimnimum/undodir" ]
then
echo "[!] Undodir exist"
else
mkdir undodir
echo "[+] Undodir create"
fi
# create Python virtualenv
python -m venv $HOME/.vimnimum/pyvenv
# install Python dependency for Neovim
source $HOME/.vimnimum/pyvenv/bin/activate
pip install pynvim
deactivate
vim -c ":PlugInstall|:qa"
echo "[+] Installed the Ultimate Vim configuration successfully! Enjoy :-)"