Browse Source

add install script

master
Jannik Beyerstedt 1 year ago
parent
commit
d79c6eddc1
2 changed files with 36 additions and 18 deletions
  1. 20
    0
      install.sh
  2. 16
    18
      vim.md

+ 20
- 0
install.sh View File

@@ -0,0 +1,20 @@
#!/bin/sh
cd ~/

# repo must have been cloned to ~/_dotfiles
ln -s ~/_dotfiles/_tmux.conf ~/.tmux.conf
ln -s ~/_dotfiles/_gitignore_global ~/.gitignore_global
ln -s ~/_dotfiles/_gitconfig ~/.gitconfig
ln -s ~/_dotfiles/_vimrc ~/.vimrc

# install vim plugins
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

cd ~/.vim/bundle
git clone https://github.com/itchyny/lightline.vim
git clone https://github.com/w0rp/ale
git clone https://github.com/airblade/vim-gitgutter
git clone https://github.com/sheerun/vim-polyglot
git clone https://github.com/tpope/vim-commentary
cd ~/

+ 16
- 18
vim.md View File

@@ -1,26 +1,24 @@
# Notes on VIM customization
basics copied from <https://statico.github.io/vim3.html>

## additional steps:
- install Pathogen https://github.com/tpope/vim-pathogen
- install Lightline: see https://vimawesome.com/plugin/lightline-vim
- install ALE: see https://vimawesome.com/plugin/ale
- install vim-gitgutter: see https://vimawesome.com/plugin/vim-gitgutter
- install vim-polyglot: see https://vimawesome.com/plugin/vim-polyglot
- install commentery: see https://vimawesome.com/plugin/commentary-vim
## used VIM plugins:
- Pathogen https://github.com/tpope/vim-pathogen
- Lightline: see https://vimawesome.com/plugin/lightline-vim
- ALE: see https://vimawesome.com/plugin/ale
- vim-gitgutter: see https://vimawesome.com/plugin/vim-gitgutter
- vim-polyglot: see https://vimawesome.com/plugin/vim-polyglot
- commentery: see https://vimawesome.com/plugin/commentary-vim

## "Setup Script" (Plugins only)
```
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

cd ~/.vim/bundle
git clone https://github.com/itchyny/lightline.vim
git clone https://github.com/w0rp/ale
git clone https://github.com/airblade/vim-gitgutter
git clone https://github.com/sheerun/vim-polyglot
git clone https://github.com/tpope/vim-commentary
#### Normal Linux
```
git clone https://github.com/jbeyerstedt/_dotfiles.git
./_dotfiles/install.sh
```

cd ~/
ln -s -dotfiles/_vimrc .vimrc
#### Raspberry Pi
```
git clone -b raspi https://github.com/jbeyerstedt/_dotfiles.git
./_dotfiles/install.sh
```

Loading…
Cancel
Save