xonecas.io
2780
D2

dotfiles-2014 / commit 60973df

Update vim setup add a collection of 256 colors

sean2015-11-06 60973df287bfdeb225b1428bed108000acb88a60 parent 38c4245

4 files changed

bashrc+4−3
@@ -123,6 +123,7 @@ alias gst='git status'
123123 alias gc='git commit --verbose'
124124 alias gp='git pull --rebase'
125125 alias ggrep='git grep'
126+alias mc='git log --pretty=format:"%h - %an, %ar : %s" | grep sean | less'
126127
127128 export NVM_DIR="/home/vagrant/.nvm"
128129 [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
@@ -164,9 +165,9 @@ function __info {
164165 [ "$full" != "" ] && echo "$full"
165166 }
166167
167-COLOR1=$(tput setaf 6)
168-COLOR2=$(tput setaf 4)
169-COLOR3=$(tput setaf 5)
168+COLOR1=$(tput setaf 4)
169+COLOR2=$(tput setaf 7)
170+COLOR3=$(tput setaf 6)
170171 CLEAR=$(tput sgr0)
171172 #PS1="$COLOR3[$COLOR2\$(__info)$COLOR3] $COLOR1☠ $COLOR3($COLOR2\w$COLOR3) \$(tput setaf 7)"
172173 LINE1="\[$COLOR1\]┌─\[$COLOR3\][\[$COLOR2\]\$(__info)\[$COLOR3\]]\[$COLOR1\]──\[$COLOR3\](\[$COLOR2\]\w\[$COLOR3\])\n"
install.py+6−5
@@ -78,11 +78,12 @@ def clone_plugins():
7878 foldername = splitext(basename(plugin_url))[0]
7979 call(["git", "clone", plugin_url, join(bundle, foldername)])
8080
81- vimbrant = "https://raw.githubusercontent.com/thayerwilliams/vimbrant/master/vimbrant.vim"
82- vimbrant_out = join(VIM_COLORS, "vimbrant.vim")
83- if not exists(VIM_COLORS):
84- makedirs(VIM_COLORS)
85- call(["curl", "-L", vimbrant, "-o", vimbrant_out])
81+ # included in my repo of 256 colors
82+ # vimbrant = "https://raw.githubusercontent.com/thayerwilliams/vimbrant/master/vimbrant.vim"
83+ # vimbrant_out = join(VIM_COLORS, "vimbrant.vim")
84+ # if not exists(VIM_COLORS):
85+ # makedirs(VIM_COLORS)
86+ # call(["curl", "-L", vimbrant, "-o", vimbrant_out])
8687
8788
8889 def setup_vim():
vim_plugins.txt+2−1
@@ -1,5 +1,4 @@
11 https://github.com/airblade/vim-gitgutter.git
2-https://github.com/altercation/vim-colors-solarized.git
32 https://github.com/hynek/vim-python-pep8-indent.git
43 https://github.com/itchyny/lightline.vim.git
54 https://github.com/jelera/vim-javascript-syntax.git
@@ -10,3 +9,5 @@ https://github.com/scrooloose/nerdcommenter.git
109 https://github.com/scrooloose/syntastic.git
1110 https://github.com/tpope/vim-fugitive.git
1211 https://github.com/tpope/vim-haml.git
12+https://github.com/xonecas/vim-colors-256.git
13+https://github.com/morhetz/gruvbox
vimrc+2−2
@@ -52,7 +52,7 @@ command! W w
5252 set t_Co=256
5353 set t_ut=
5454 set background=dark
55-colorscheme vimbrant
55+colorscheme gruvbox
5656
5757
5858 " Plugin stuff
@@ -87,7 +87,7 @@ autocmd BufNewFile,BufRead *.json setfiletype json syntax=javascript
8787
8888
8989 let g:lightline = {
90- \ 'colorscheme': 'powerline',
90+ \ 'colorscheme': 'gruvbox',
9191 \ 'active': {
9292 \ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ], ['ctrlpmark'] ],
9393 \ 'right': [ [ 'syntastic', 'lineinfo' ], ['percent'], [ 'fileformat', 'fileencoding', 'filetype' ] ]