-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-vim.sh
More file actions
executable file
·35 lines (26 loc) · 1.29 KB
/
install-vim.sh
File metadata and controls
executable file
·35 lines (26 loc) · 1.29 KB
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
#!/bin/bash
set -e
echo "Setting up vim configuration..."
mkdir -p ~/.vim/pack/plugins/start
mkdir -p ~/.vim/pack/plugins/opt
echo "Installing NERDTree..."
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/pack/plugins/start/nerdtree 2>/dev/null || \
(cd ~/.vim/pack/plugins/start/nerdtree && git pull)
echo "Installing fzf.vim..."
git clone https://github.com/junegunn/fzf.vim.git ~/.vim/pack/plugins/start/fzf.vim 2>/dev/null || \
(cd ~/.vim/pack/plugins/start/fzf.vim && git pull)
echo "Installing vim-gutentags..."
git clone https://github.com/ludovicchabant/vim-gutentags.git ~/.vim/pack/plugins/start/vim-gutentags 2>/dev/null || \
(cd ~/.vim/pack/plugins/start/vim-gutentags && git pull)
echo "Installing fzf binary..."
if [ ! -d ~/.fzf ]; then
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install --bin --no-key-bindings --no-completion --no-update-rc
else
echo "fzf already installed, updating..."
cd ~/.fzf && git pull && ./install --bin --no-key-bindings --no-completion --no-update-rc
fi
echo "Downloading vimrc..."
curl -fsSL https://raw.githubusercontent.com/okuvshynov/dotfiles/main/vim/vimrc -o ~/.vimrc
echo "Done! Vim is now configured with NERDTree, fzf, and gutentags."
echo "Use Ctrl+\ to toggle NERDTree and F7 for fzf history."