Skip to content

Commit 1ac39da

Browse files
author
Reed Allman
committed
updated
1 parent bdea564 commit 1ac39da

File tree

2 files changed

+33
-58
lines changed

2 files changed

+33
-58
lines changed

.vimrc

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,14 @@ syntax on "syntax highlighting
1919
let mapleader="," "remap leader to ,
2020
set pastetoggle=<F2>
2121
noremap <silent> <leader>l :noh<CR>
22-
noremap <silent> <leader>o :tab sp<CR>
23-
noremap <silent> <leader>x :tabc<CR>
24-
map <leader>= mzgg=G`z<CR>
22+
noremap <silent> <leader>d :bd<CR>
2523
2624
" splits "much more 'vim' like
2725
nnoremap <C-J> <C-W><C-J>
2826
nnoremap <C-K> <C-W><C-K>
2927
nnoremap <C-L> <C-W><C-L>
3028
nnoremap <C-H> <C-W><C-H>
31-
nmap <c-w>l :vertical res +20<cr>
32-
nmap <c-w>h :vertical res -20<cr>
33-
nmap <c-w>j :res -20<cr>
34-
nmap <c-w>k :res +20<cr>
29+
nnoremap <C-=> <C-W>=
3530
3631
set splitbelow "naturally go right and down
3732
set splitright
@@ -73,9 +68,9 @@ augroup vimrcEx
7368
" Don't do it for commit messages, when the position is invalid, or when
7469
" inside an event handler (happens when dropping a file on gvim).
7570
autocmd BufReadPost *
76-
\ if &ft != 'gitcommit' && line("'\"") > 0 && line("'\"") <= line("$") |
77-
\ exe "normal g`\"" |
78-
\ endif
71+
\ if &ft != 'gitcommit' && line("'\"") > 0 && line("'\"") <= line("$") |
72+
\ exe "normal g`\"" |
73+
\ endif
7974

8075
" Cucumber navigation commands
8176
autocmd User Rails Rnavcommand step features/step_definitions -glob=**/* -suffix=_steps.rb
@@ -84,6 +79,9 @@ augroup vimrcEx
8479
" Set syntax highlighting for specific file types
8580
autocmd BufRead,BufNewFile *.md set filetype=markdown
8681

82+
" gofmt on save
83+
autocmd FileType go autocmd BufWritePre <buffer> Fmt
84+
8785
" Enable spellchecking for Markdown
8886
autocmd BufRead,BufNewFile *.md setlocal spell
8987

@@ -128,7 +126,6 @@ if ! has('gui_running') "fix the slowness of powerline
128126
augroup END
129127
endif
130128

131-
let g:airline_powerline_fonts = 1
132129
let g:airline_theme = 'tomorrow'
133130
let g:airline_section_x = ''
134131
let g:airline_section_y = '%{&filetype}'
@@ -139,9 +136,16 @@ let g:airline#extensions#hunks#enabled = 0
139136
let g:bufferline_echo = 0
140137

141138
" ====== ctrlp ========
139+
if executable('ag')
140+
" use silver searcher for grep
141+
set grepprg=ag\ --nogroup\ --nocolor
142+
143+
" use ag in CtrlP
144+
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
142145

143-
" ====== NERDTree =====
144-
map <Leader>m :NERDTreeToggle<CR>
146+
"yeah no cache is nice for new files, thanks ag
147+
let g:ctrlp_use_caching = 0
148+
endif
145149

146150
" ====== EasyMotion =====
147151
let g:EasyMotion_leader_key = '<Leader>'
@@ -172,7 +176,7 @@ vmap <Leader>t: :Tabularize /:<CR>
172176
"" ======= go ===============
173177
filetype off
174178
filetype plugin indent off
175-
set rtp+=/usr/local/go/misc/vim
179+
set rtp+=$GOROOT/misc/vim
176180
filetype plugin indent on
177181
syntax on
178182

@@ -210,13 +214,11 @@ NeoBundle 'airblade/vim-gitgutter'
210214
NeoBundle 'terryma/vim-multiple-cursors'
211215
NeoBundle 'w0ng/vim-hybrid'
212216
NeoBundle 'godlygeek/tabular'
213-
NeoBundle 'nanotech/jellybeans.vim'
214-
NeoBundle 'mileszs/ack.vim'
215-
NeoBundle 'noahfrederick/vim-hemisu'
216-
NeoBundle 'vim-scripts/ParseJSON'
217+
NeoBundle 'rking/ag.vim'
218+
"NeoBundle 'nanotech/jellybeans.vim'
219+
"NeoBundle 'noahfrederick/vim-hemisu'
217220

218-
set rtp+=~/Dev/openrefactory-vim/
219-
set rtp+=$GOPATH/src/go-oracle-vim
221+
set rtp+=~/Dev/OpenRefactory/org.openrefactory.vim.ui/openrefactory-vim
220222

221223
filetype plugin indent on
222224
NeoBundleCheck

.zshrc

Lines changed: 11 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,7 @@ ZSH=$HOME/.oh-my-zsh
55
# Look in ~/.oh-my-zsh/themes/
66
# Optionally, if you set this to "random", it'll load a random theme each
77
# time that oh-my-zsh is loaded.
8-
9-
ZSH_THEME="kolo"
10-
11-
#rbenv
12-
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
13-
14-
#completions
15-
fpath=(/usr/local/share/zsh-completions $fpath)
16-
17-
# autojump
18-
autoload -U compinit && compinit
19-
export AUTOJUMP_IGNORE_CASE=1
20-
21-
22-
#suggestions
23-
autoload -U predict-on
24-
zle -N predict-on
25-
zle -N predict-off
26-
bindkey '^Z' predict-on
27-
bindkey '^X^Z' predict-off
28-
zstyle ':predict' verbose 'yes'
29-
30-
bindkey -v
8+
ZSH_THEME="shrew"
319

3210
# Example aliases
3311
# alias zshconfig="mate ~/.zshrc"
@@ -36,11 +14,11 @@ bindkey -v
3614
# Set to this to use case-sensitive completion
3715
# CASE_SENSITIVE="true"
3816

39-
# Comment this out to disable bi-weekly auto-update checks
17+
# Uncomment this to disable bi-weekly auto-update checks
4018
# DISABLE_AUTO_UPDATE="true"
4119

4220
# Uncomment to change how often before auto-updates occur? (in days)
43-
export UPDATE_ZSH_DAYS=13
21+
# export UPDATE_ZSH_DAYS=13
4422

4523
# Uncomment following line if you want to disable colors in ls
4624
# DISABLE_LS_COLORS="true"
@@ -49,7 +27,7 @@ bindkey -v
4927
# DISABLE_AUTO_TITLE="true"
5028

5129
# Uncomment following line if you want to disable command autocorrection
52-
# DISABLE_CORRECTION="true"
30+
DISABLE_CORRECTION="true"
5331

5432
# Uncomment following line if you want red dots to be displayed while waiting for completion
5533
# COMPLETION_WAITING_DOTS="true"
@@ -62,21 +40,16 @@ bindkey -v
6240
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
6341
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
6442
# Example format: plugins=(rails git textmate ruby lighthouse)
65-
plugins=(git autojump brew github zsh-syntax-highlighting sublime rbenv rails4 rake ruby heroku go osx)
43+
plugins=(osx git github fasd zsh-syntax-highlighting brew rbenv heroku)
6644

6745
source $ZSH/oh-my-zsh.sh
6846

69-
#rbenv
70-
eval "$(rbenv init -)"
71-
7247
# Customize to your needs...
73-
export PATH=~/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
74-
75-
### Added by the Heroku Toolbelt
76-
export PATH="/usr/local/heroku/bin:$PATH"
77-
#export PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
48+
export RBENV_ROOT=/usr/local/var/rbenv
49+
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
7850

79-
### GO
80-
export GOROOT=/usr/local/go
8151
export GOPATH=$HOME/Dev/gocode
82-
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
52+
export GOROOT=/usr/local/go
53+
54+
export PATH=$GOPATH/bin:$GOROOT/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
55+
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

0 commit comments

Comments
 (0)