-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Description
To make this as accessible as possible, should we have a shell script that can install this, (for those folk that don't have a vim plugin manager?)
#!/bin/sh
if [ "$(which cargo)" ]; then # if rust is installed:
# install plugin
mkdir -p ~/.vim/plugin 2>/dev/null
cd ~/.vim/plugin
[ -f "minimap.vim" ]||wget https://github.com/wfxr/minimap.vim/raw/master/plugin/minimap.vim
cd ..
# install bin
mkdir -p bin/ 2>/dev/null
cd bin/
[ -f "minimap_generator.sh" ]||wget https://raw.githubusercontent.com/wfxr/minimap.vim/master/bin/minimap_generator.sh
cd ..
#install autoload
mkdir -p autoload/minimap/ 2>/dev/null
cd autoload/minimap
[ -f "vim.vim" ]||wget https://github.com/wfxr/minimap.vim/raw/master/autoload/minimap/vim.vim
cd
# install deps
cargo install --locked code-minimap
else
printf "Maybe install rust?: \e[0;33m curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh \033[0m \n"
fi
(Though my proposed install script causes my copy of vim 8.1.1401 to warn:
Error detected while processing /home/alexx/.vim/plugin/minimap.vim:
line 31:
E121: Undefined variable: g:minimap_auto_start
)
wfxr, TheMBL09898 and schneiderfelipe
Metadata
Metadata
Assignees
Labels
No labels