forked from bhudgens/benvironment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim
More file actions
48 lines (37 loc) · 1.05 KB
/
vim
File metadata and controls
48 lines (37 loc) · 1.05 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
36
37
38
39
40
41
42
43
44
45
46
47
48
#! /usr/bin/env bash
#############################################################################
# Software Install
#############################################################################
apt_get_install () {
if ! which "$1" > /dev/null; then
[ -z "${RUN_ONCE}" ] && sudo apt-get update -y && RUN_ONCE=true
sudo apt-get install -y $1
fi
}
vimrc_after () {
cat << EOF >> $1
let g:onedark_color_overrides = {
\ "black": {"gui": "#000000", "cterm": "000", "cterm16": "0" },
\ "purple": { "gui": "#C678DF", "cterm": "170", "cterm16": "5" }
\}
colorscheme onedark
set modeline
set modelines=5
filetype plugin indent on
set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=2
EOF
}
apt_get_install rake
if [ ! -d "${HOME}/.vim" ]; then
curl -L 'https://bit.ly/janus-bootstrap' | bash
fi
if [ ! -d "${HOME}/.vim/janus/vim/colors/onedark" ]; then
git clone 'https://github.com/joshdick/onedark.vim.git' "${HOME}/.vim/janus/vim/colors/onedark"
fi
if [ ! -f "${HOME}/.vimrc.after" ]; then
vimrc_after "${HOME}/.vimrc.after"
fi
set -o vi