Created
September 5, 2013 19:40
-
-
Save nmeans/6455087 to your computer and use it in GitHub Desktop.
Local config files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g default-terminal "screen-256color" | |
set -sg escape-time 0 | |
# scrollback buffer size increase | |
set -g history-limit 500000 | |
# Use up and down arrows for temporary "maximize" | |
unbind Up; bind Up resize-pane -Z; unbind Down; bind Down resize-pane -Z | |
# ——— Cosmetics ———————————————————————————————————————————————————— | |
set -g status-utf8 on | |
set -g status-justify centre | |
set -g status-bg black | |
set -g status-left "#[fg=green]#S #[fg=yellow]#I #[fg=cyan]#P" | |
set -g status-right "#[fg=cyan]%b %d #[fg=yellow]|#[fg=cyan]%l:%M %p" | |
setw -g window-status-bell-attr default | |
setw -g window-status-bell-fg red | |
setw -g window-status-activity-attr bold | |
setw -g window-status-format "#[fg=cyan]• #[fg=white]#I#[fg=cyan] #[fg=white]#12W" | |
setw -g window-status-current-format "#[fg=red]▶ #[fg=white]#I#[fg=red,bold] #[fg=white]#W" | |
set -g pane-border-fg colour238 | |
set -g pane-border-bg black | |
set -g pane-active-border-fg white | |
set -g pane-active-border-bg black | |
set -g message-fg white | |
set -g message-bg black | |
set -g message-attr bright | |
# ——— Cosmetics ———————————————————————————————————————————————————— |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set background=dark | |
colorscheme solarized | |
set nu | |
" multiple leaders | |
:nmap , \ | |
" simply navigation | |
map <C-j> <C-W>j | |
map <C-k> <C-W>k | |
map <C-h> <C-W>h | |
map <C-l> <C-W>l | |
" save with enter | |
nmap <CR> :write!<CR> | |
" cabbrev w nope | |
" vim tab navigation | |
nnoremap th :tabfirst<CR> | |
nnoremap tj :tabprev<CR> | |
nnoremap tk :tabnext<CR> | |
nnoremap tl :tablast<CR> | |
nnoremap tc :tabclose<CR> | |
nnoremap tn :tabnew<CR> | |
" ctrl-p goodies | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_cmd = 'CtrlP' | |
let g:ctrlp_match_window_reversed = 0 | |
let g:ctrlp_working_path_mode = 'ra' | |
let g:ctrlp_max_height = 20 | |
let g:ctrlp_match_window_bottom = 0 | |
let g:ctrlp_switch_buffer = 0 | |
map <c-p>b :CtrlPBuffer<cr> | |
map <c-p>v :CtrlP app/views<cr> | |
map <c-p>c :CtrlP app/controllers<cr> | |
map <c-p>m :CtrlP app/models<cr> | |
map <c-p>h :CtrlP app/helpers<cr> | |
map <c-p>d :CtrlP app/decorators<cr> | |
map <c-p>l :CtrlP lib<cr> | |
map <c-p>j :CtrlP app/assets/javascripts<cr> | |
map <c-p>s :CtrlP spec<cr> | |
map <c-p>f :CtrlP config<cr> | |
" This uses Ack.vim to search for the word under the cursor | |
nnoremap <Leader><bs> :Ack! '\b<c-r><c-w>\b'<cr> | |
" keep foreground commands in sync | |
map fg <c-z> | |
" Searching | |
set hlsearch | |
set incsearch | |
set ignorecase | |
set smartcase | |
" search highlight cancel | |
map <Leader><space> :nohl<cr> | |
" don't scroll to edge of view | |
set scrolloff=5 | |
" add custom syntax highlighting | |
au BufNewFile,BufRead *.ejs set filetype=html | |
" au BufNewFile,BufRead *.hamlc set filetype=haml | |
au BufNewFile,BufRead *.hamlc set filetype=html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment