├── .bash_profile ├── .config └── fish │ └── config.fish ├── .tmux.conf ├── .vim ├── .netrwhist ├── autoload │ └── pathogen.vim ├── colors │ ├── grb256.vim │ └── mustang.vim └── undodir │ ├── %Users%Daniel%.bash_profile │ ├── %Users%Daniel%.vimrc │ ├── %Users%Daniel%Documents%Dev Projects%Personal Projects%simple-todos%simple-todos.css │ ├── %Users%Daniel%Documents%Dev Projects%Personal Projects%simple-todos%simple-todos.html │ ├── %Users%Daniel%Documents%Dev Projects%Personal Projects%simple-todos%simple-todos.js │ ├── %Users%Daniel%Documents%Dev Projects%Personal Projects%war%README.md │ ├── %Users%Daniel%Documents%Dev Projects%Personal Projects%war%war.css │ ├── %Users%Daniel%Documents%Dev Projects%Personal Projects%war%war.html │ ├── %Users%Daniel%Documents%Dev Projects%Personal Projects%war%war.js │ └── %Users%Daniel%README.md ├── .vimrc └── README.md /.bash_profile: -------------------------------------------------------------------------------- 1 | 2 | [[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile 3 | 4 | [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* 5 | 6 | export PATH="$PATH:/usr/local/smlnj/bin" 7 | 8 | function gmail { 9 | open 'https://mail.google.com/mail/u/0/#inbox' 10 | } 11 | 12 | function goog { 13 | local IFS='+' 14 | local query="$*" 15 | open "https://www.google.com/#q=${query}" 16 | } 17 | 18 | PS1="\e[00;34m\h:\W \u\$ \e[00m" 19 | -------------------------------------------------------------------------------- /.config/fish/config.fish: -------------------------------------------------------------------------------- 1 | set -g -x PATH /usr/local/bin $PATH 2 | set -g -x PATH "/Users/Daniel/Documents/go-workspace/bin/" $PATH 3 | 4 | alias daniel="echo 'you are doing good work! i am sure of it.'" 5 | alias ll="ls -la" 6 | alias cl="clear" 7 | alias e="exit" 8 | alias :q="exit" 9 | alias cn="bundle exec rails console" 10 | alias be="bundle exec" 11 | alias ber="bundle exec rspec" 12 | alias subl="sublime" 13 | alias dd="cd /Users/Daniel/Documents" 14 | alias dad="cd /Users/Daniel/Documents/Dev\ Projects/Personal\ Projects/daniel-allen-deutsch-3.0" 15 | alias pbml="cd /Users/Daniel/Documents/Dev\ Projects/Personal\ Projects/picturebookmylife-2" 16 | rvm default 17 | 18 | set -x EDITOR vim 19 | set -x GOPATH "/Users/Daniel/Documents/go-workspace/":"/Users/Daniel/Documents/go-workspace/src/go-figure" 20 | -------------------------------------------------------------------------------- /.tmux.conf: -------------------------------------------------------------------------------- 1 | unbind C-b 2 | set -g prefix C-a 3 | 4 | # TRYING THINGS FROM BOOK 5 | setw -g mode-keys vi 6 | bind -t vi-copy 'v' begin-selection 7 | bind -t vi-copy 'y' copy-selection 8 | set-option -g default-command "reattach-to-user-namespace -l fish" 9 | bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" \; display "Copied to system from tmux clipboard" 10 | bind C-v run "tmux set-buffer $(reattach-to-user-namespace pbpaste); tmux paste-buffer" \; display "Copied to tmux from system clipboard" 11 | 12 | set -sg escape-time 1 13 | bind r source-file ~/.tmux.conf 14 | bind | split-window -h 15 | bind - split-window -v 16 | unbind C-p 17 | unbind C-n 18 | bind -r p select-window -t :- 19 | bind -r n select-window -t :+ 20 | 21 | #set -g default-terminal "screen-256color" 22 | set -g status-fg cyan 23 | set -g status-bg blue 24 | set -g status-left-length 40 25 | set -g status-left "session: #S || window: #I || pane: #P" 26 | set -g status-justify centre 27 | set -g status-right "%d-%b %R" 28 | 29 | setw -g window-status-fg white 30 | setw -g window-status-bg cyan 31 | setw -g window-status-attr dim 32 | setw -g window-status-current-fg white 33 | setw -g window-status-current-bg red 34 | setw -g window-status-current-attr bright 35 | 36 | # set -g message-fg white 37 | # set -g message-bg green 38 | # set -g message-attr bright 39 | 40 | set -g pane-border-fg white 41 | set -g pane-active-border-fg cyan 42 | set -g pane-active-border-bg cyan 43 | 44 | setw -g monitor-activity on 45 | set -g visual-activity on 46 | 47 | bind-key a send-prefix 48 | 49 | bind -r J resize-pane -D 5 50 | bind -r K resize-pane -U 5 51 | bind -r H resize-pane -L 5 52 | bind -r L resize-pane -R 5 53 | 54 | bind j select-pane -D 55 | bind k select-pane -U 56 | bind h select-pane -L 57 | bind l select-pane -R 58 | -------------------------------------------------------------------------------- /.vim/.netrwhist: -------------------------------------------------------------------------------- 1 | let g:netrw_dirhistmax =10 2 | let g:netrw_dirhist_cnt =1 3 | let g:netrw_dirhist_1='/Users/Daniel/Documents/Dev Projects/Personal Projects/simple-todos' 4 | -------------------------------------------------------------------------------- /.vim/autoload/pathogen.vim: -------------------------------------------------------------------------------- 1 | " pathogen.vim - path option manipulation 2 | " Maintainer: Tim Pope 3 | " Version: 2.3 4 | 5 | " Install in ~/.vim/autoload (or ~\vimfiles\autoload). 6 | " 7 | " For management of individually installed plugins in ~/.vim/bundle (or 8 | " ~\vimfiles\bundle), adding `execute pathogen#infect()` to the top of your 9 | " .vimrc is the only other setup necessary. 10 | " 11 | " The API is documented inline below. 12 | 13 | if exists("g:loaded_pathogen") || &cp 14 | finish 15 | endif 16 | let g:loaded_pathogen = 1 17 | 18 | " Point of entry for basic default usage. Give a relative path to invoke 19 | " pathogen#interpose() (defaults to "bundle/{}"), or an absolute path to invoke 20 | " pathogen#surround(). Curly braces are expanded with pathogen#expand(): 21 | " "bundle/{}" finds all subdirectories inside "bundle" inside all directories 22 | " in the runtime path. 23 | function! pathogen#infect(...) abort 24 | for path in a:0 ? filter(reverse(copy(a:000)), 'type(v:val) == type("")') : ['bundle/{}'] 25 | if path =~# '^\%({\=[$~\\/]\|{\=\w:[\\/]\).*[{}*]' 26 | call pathogen#surround(path) 27 | elseif path =~# '^\%([$~\\/]\|\w:[\\/]\)' 28 | call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')') 29 | call pathogen#surround(path . '/{}') 30 | elseif path =~# '[{}*]' 31 | call pathogen#interpose(path) 32 | else 33 | call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')') 34 | call pathogen#interpose(path . '/{}') 35 | endif 36 | endfor 37 | call pathogen#cycle_filetype() 38 | if pathogen#is_disabled($MYVIMRC) 39 | return 'finish' 40 | endif 41 | return '' 42 | endfunction 43 | 44 | " Split a path into a list. 45 | function! pathogen#split(path) abort 46 | if type(a:path) == type([]) | return a:path | endif 47 | if empty(a:path) | return [] | endif 48 | let split = split(a:path,'\\\@]','\\&','') 238 | endif 239 | endfunction 240 | 241 | " Like findfile(), but hardcoded to use the runtimepath. 242 | function! pathogen#runtime_findfile(file,count) abort "{{{1 243 | let rtp = pathogen#join(1,pathogen#split(&rtp)) 244 | let file = findfile(a:file,rtp,a:count) 245 | if file ==# '' 246 | return '' 247 | else 248 | return fnamemodify(file,':p') 249 | endif 250 | endfunction 251 | 252 | " Section: Deprecated 253 | 254 | function! s:warn(msg) abort 255 | echohl WarningMsg 256 | echomsg a:msg 257 | echohl NONE 258 | endfunction 259 | 260 | " Prepend all subdirectories of path to the rtp, and append all 'after' 261 | " directories in those subdirectories. Deprecated. 262 | function! pathogen#runtime_prepend_subdirectories(path) abort 263 | call s:warn('Change pathogen#runtime_prepend_subdirectories('.string(a:path).') to pathogen#infect('.string(a:path.'/{}').')') 264 | return pathogen#surround(a:path . pathogen#slash() . '{}') 265 | endfunction 266 | 267 | function! pathogen#incubate(...) abort 268 | let name = a:0 ? a:1 : 'bundle/{}' 269 | call s:warn('Change pathogen#incubate('.(a:0 ? string(a:1) : '').') to pathogen#infect('.string(name).')') 270 | return pathogen#interpose(name) 271 | endfunction 272 | 273 | " Deprecated alias for pathogen#interpose(). 274 | function! pathogen#runtime_append_all_bundles(...) abort 275 | if a:0 276 | call s:warn('Change pathogen#runtime_append_all_bundles('.string(a:1).') to pathogen#infect('.string(a:1.'/{}').')') 277 | else 278 | call s:warn('Change pathogen#runtime_append_all_bundles() to pathogen#infect()') 279 | endif 280 | return pathogen#interpose(a:0 ? a:1 . '/{}' : 'bundle/{}') 281 | endfunction 282 | 283 | if exists(':Vedit') 284 | finish 285 | endif 286 | 287 | let s:vopen_warning = 0 288 | 289 | function! s:find(count,cmd,file,lcd) 290 | let rtp = pathogen#join(1,pathogen#split(&runtimepath)) 291 | let file = pathogen#runtime_findfile(a:file,a:count) 292 | if file ==# '' 293 | return "echoerr 'E345: Can''t find file \"".a:file."\" in runtimepath'" 294 | endif 295 | if !s:vopen_warning 296 | let s:vopen_warning = 1 297 | let warning = '|echohl WarningMsg|echo "Install scriptease.vim to continue using :V'.a:cmd.'"|echohl NONE' 298 | else 299 | let warning = '' 300 | endif 301 | if a:lcd 302 | let path = file[0:-strlen(a:file)-2] 303 | execute 'lcd `=path`' 304 | return a:cmd.' '.pathogen#fnameescape(a:file) . warning 305 | else 306 | return a:cmd.' '.pathogen#fnameescape(file) . warning 307 | endif 308 | endfunction 309 | 310 | function! s:Findcomplete(A,L,P) 311 | let sep = pathogen#slash() 312 | let cheats = { 313 | \'a': 'autoload', 314 | \'d': 'doc', 315 | \'f': 'ftplugin', 316 | \'i': 'indent', 317 | \'p': 'plugin', 318 | \'s': 'syntax'} 319 | if a:A =~# '^\w[\\/]' && has_key(cheats,a:A[0]) 320 | let request = cheats[a:A[0]].a:A[1:-1] 321 | else 322 | let request = a:A 323 | endif 324 | let pattern = substitute(request,'/\|\'.sep,'*'.sep,'g').'*' 325 | let found = {} 326 | for path in pathogen#split(&runtimepath) 327 | let path = expand(path, ':p') 328 | let matches = split(glob(path.sep.pattern),"\n") 329 | call map(matches,'isdirectory(v:val) ? v:val.sep : v:val') 330 | call map(matches,'expand(v:val, ":p")[strlen(path)+1:-1]') 331 | for match in matches 332 | let found[match] = 1 333 | endfor 334 | endfor 335 | return sort(keys(found)) 336 | endfunction 337 | 338 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Ve :execute s:find(,'edit',,0) 339 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(,'edit',,0) 340 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(,'edit',,1) 341 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(,'split',,1) 342 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(,'vsplit',,1) 343 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(,'tabedit',,1) 344 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(,'pedit',,1) 345 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(,'read',,1) 346 | 347 | " vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=': 348 | -------------------------------------------------------------------------------- /.vim/colors/grb256.vim: -------------------------------------------------------------------------------- 1 | " Based on 2 | runtime colors/ir_black.vim 3 | 4 | let g:colors_name = "grb256" 5 | 6 | hi pythonSpaceError ctermbg=red guibg=red 7 | 8 | hi Comment ctermfg=darkgray 9 | 10 | hi StatusLine ctermbg=darkgrey ctermfg=white 11 | hi StatusLineNC ctermbg=black ctermfg=lightgrey 12 | hi VertSplit ctermbg=black ctermfg=lightgrey 13 | hi LineNr ctermfg=darkgray 14 | hi CursorLine guifg=NONE guibg=#121212 gui=NONE ctermfg=NONE ctermbg=234 15 | hi Function guifg=#FFD2A7 guibg=NONE gui=NONE ctermfg=yellow ctermbg=NONE cterm=NONE 16 | hi Visual guifg=NONE guibg=#262D51 gui=NONE ctermfg=NONE ctermbg=236 cterm=NONE 17 | 18 | hi Error guifg=NONE guibg=NONE gui=undercurl ctermfg=16 ctermbg=red cterm=NONE guisp=#FF6C60 " undercurl color 19 | hi ErrorMsg guifg=white guibg=#FF6C60 gui=BOLD ctermfg=16 ctermbg=red cterm=NONE 20 | hi WarningMsg guifg=white guibg=#FF6C60 gui=BOLD ctermfg=16 ctermbg=red cterm=NONE 21 | hi SpellBad guifg=white guibg=#FF6C60 gui=BOLD ctermfg=16 ctermbg=160 cterm=NONE 22 | 23 | " ir_black doesn't highlight operators for some reason 24 | hi Operator guifg=#6699CC guibg=NONE gui=NONE ctermfg=lightblue ctermbg=NONE cterm=NONE 25 | 26 | highlight DiffAdd term=reverse cterm=bold ctermbg=lightgreen ctermfg=16 27 | highlight DiffChange term=reverse cterm=bold ctermbg=lightblue ctermfg=16 28 | highlight DiffText term=reverse cterm=bold ctermbg=lightgray ctermfg=16 29 | highlight DiffDelete term=reverse cterm=bold ctermbg=lightred ctermfg=16 30 | 31 | highlight PmenuSel ctermfg=16 ctermbg=156 -------------------------------------------------------------------------------- /.vim/colors/mustang.vim: -------------------------------------------------------------------------------- 1 | " Maintainer: Henrique C. Alves (hcarvalhoalves@gmail.com) 2 | " Version: 1.0 3 | " Last Change: September 25 2008 4 | 5 | set background=dark 6 | 7 | hi clear 8 | 9 | if exists("syntax_on") 10 | syntax reset 11 | endif 12 | 13 | let colors_name = "mustang" 14 | 15 | " Vim >= 7.0 specific colors 16 | if version >= 700 17 | hi CursorLine guibg=#2d2d2d ctermbg=236 18 | hi CursorColumn guibg=#2d2d2d ctermbg=236 19 | hi MatchParen guifg=#d0ffc0 guibg=#2f2f2f gui=bold ctermfg=157 ctermbg=237 cterm=bold 20 | hi Pmenu guifg=#ffffff guibg=#444444 ctermfg=255 ctermbg=238 21 | hi PmenuSel guifg=#000000 guibg=#b1d631 ctermfg=0 ctermbg=148 22 | endif 23 | 24 | " General colors 25 | hi Cursor guifg=NONE guibg=#626262 gui=none ctermbg=241 26 | hi Normal guifg=#e2e2e5 guibg=#202020 gui=none ctermfg=253 ctermbg=234 27 | hi NonText guifg=#808080 guibg=#303030 gui=none ctermfg=244 ctermbg=235 28 | hi LineNr guifg=#808080 guibg=#000000 gui=none ctermfg=244 ctermbg=232 29 | hi StatusLine guifg=#d3d3d5 guibg=#444444 gui=italic ctermfg=253 ctermbg=238 cterm=italic 30 | hi StatusLineNC guifg=#939395 guibg=#444444 gui=none ctermfg=246 ctermbg=238 31 | hi VertSplit guifg=#444444 guibg=#444444 gui=none ctermfg=238 ctermbg=238 32 | hi Folded guibg=#384048 guifg=#a0a8b0 gui=none ctermbg=4 ctermfg=248 33 | hi Title guifg=#f6f3e8 guibg=NONE gui=bold ctermfg=254 cterm=bold 34 | hi Visual guifg=#faf4c6 guibg=#3c414c gui=none ctermfg=254 ctermbg=4 35 | hi SpecialKey guifg=#808080 guibg=#343434 gui=none ctermfg=244 ctermbg=236 36 | 37 | " Syntax highlighting 38 | hi Comment guifg=#808080 gui=italic ctermfg=244 39 | hi Todo guifg=#8f8f8f gui=italic ctermfg=245 40 | hi Boolean guifg=#b1d631 gui=none ctermfg=148 41 | hi String guifg=#b1d631 gui=italic ctermfg=148 42 | hi Identifier guifg=#b1d631 gui=none ctermfg=148 43 | hi Function guifg=#ffffff gui=bold ctermfg=255 44 | hi Type guifg=#7e8aa2 gui=none ctermfg=103 45 | hi Statement guifg=#7e8aa2 gui=none ctermfg=103 46 | hi Keyword guifg=#ff9800 gui=none ctermfg=208 47 | hi Constant guifg=#ff9800 gui=none ctermfg=208 48 | hi Number guifg=#ff9800 gui=none ctermfg=208 49 | hi Special guifg=#ff9800 gui=none ctermfg=208 50 | hi PreProc guifg=#faf4c6 gui=none ctermfg=230 51 | hi Todo guifg=#000000 guibg=#e6ea50 gui=italic 52 | 53 | " Code-specific colors 54 | hi pythonOperator guifg=#7e8aa2 gui=none ctermfg=103 55 | 56 | -------------------------------------------------------------------------------- /.vim/undodir/%Users%Daniel%.bash_profile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-nighthawk/vim/5cee6a0ff4e9e1cb17d96c77cdeea05684f4c6da/.vim/undodir/%Users%Daniel%.bash_profile -------------------------------------------------------------------------------- /.vim/undodir/%Users%Daniel%.vimrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-nighthawk/vim/5cee6a0ff4e9e1cb17d96c77cdeea05684f4c6da/.vim/undodir/%Users%Daniel%.vimrc -------------------------------------------------------------------------------- /.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%simple-todos%simple-todos.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-nighthawk/vim/5cee6a0ff4e9e1cb17d96c77cdeea05684f4c6da/.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%simple-todos%simple-todos.css -------------------------------------------------------------------------------- /.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%simple-todos%simple-todos.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-nighthawk/vim/5cee6a0ff4e9e1cb17d96c77cdeea05684f4c6da/.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%simple-todos%simple-todos.html -------------------------------------------------------------------------------- /.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%simple-todos%simple-todos.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-nighthawk/vim/5cee6a0ff4e9e1cb17d96c77cdeea05684f4c6da/.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%simple-todos%simple-todos.js -------------------------------------------------------------------------------- /.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%war%README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-nighthawk/vim/5cee6a0ff4e9e1cb17d96c77cdeea05684f4c6da/.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%war%README.md -------------------------------------------------------------------------------- /.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%war%war.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-nighthawk/vim/5cee6a0ff4e9e1cb17d96c77cdeea05684f4c6da/.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%war%war.css -------------------------------------------------------------------------------- /.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%war%war.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-nighthawk/vim/5cee6a0ff4e9e1cb17d96c77cdeea05684f4c6da/.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%war%war.html -------------------------------------------------------------------------------- /.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%war%war.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-nighthawk/vim/5cee6a0ff4e9e1cb17d96c77cdeea05684f4c6da/.vim/undodir/%Users%Daniel%Documents%Dev Projects%Personal Projects%war%war.js -------------------------------------------------------------------------------- /.vim/undodir/%Users%Daniel%README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/common-nighthawk/vim/5cee6a0ff4e9e1cb17d96c77cdeea05684f4c6da/.vim/undodir/%Users%Daniel%README.md -------------------------------------------------------------------------------- /.vimrc: -------------------------------------------------------------------------------- 1 | "" PATHOGEN 2 | execute pathogen#infect() 3 | syntax on 4 | filetype plugin indent on 5 | 6 | "" UPDATE VIM ON THE FLY WITH CHANGES TO VIMRC 7 | if has("autocmd") 8 | autocmd! 9 | autocmd bufwritepost .vimrc source $MYVIMRC 10 | endif 11 | autocmd filetype crontab setlocal nobackup nowritebackup 12 | 13 | "" SYSTEM SETTINGS 14 | set nocompatible 15 | set noswapfile 16 | set relativenumber 17 | set number 18 | set cmdheight=2 19 | set wildmode=longest,list 20 | set colorcolumn=80 21 | set t_Co=256 22 | set backspace=indent,eol,start 23 | 24 | "" SPACING SETTINGS 25 | set autoindent 26 | set shiftround 27 | set smarttab 28 | set expandtab 29 | set shiftwidth=2 30 | set softtabstop=2 31 | set tabstop=2 32 | 33 | "" UNDO SETTINGS 34 | set undofile 35 | set undodir=~/.vim/undodir 36 | set history=1000 37 | set undolevels=1000 38 | 39 | "" SEARCH SETTINGS 40 | set hlsearch " highlight search terms 41 | set incsearch " show search matches as you type 42 | 43 | "" KEY BINDINGS 44 | noremap 45 | noremap 46 | noremap 47 | noremap 48 | nnoremap 49 | vnoremap gV 50 | onoremap 51 | inoremap `^ 52 | inoremap 53 | set pastetoggle= 54 | nnoremap :!ctags -R 55 | 56 | "" LEADER MAPPINGS 57 | let mapleader = "_" 58 | map _ :noh 59 | nnoremap o ok 60 | nnoremap O Oj 61 | nnoremap i 62 | nnoremap i 63 | nnoremap ik$ 64 | nnoremap v :e $MYVIMRC 65 | nnoremap x :bdelete 66 | nnoremap pp i

k 67 | nnoremap pl ifmt.Println()i 68 | 69 | "" EXECUTE TESTS WITH LEADER KEY 70 | function! ZeusRSpecFile() 71 | execute("!clear ; zeus test " . expand("%p")) 72 | endfunction 73 | map Z :call ZeusRSpecFile() 74 | command! ZeusRSpecFile call ZeusRSpecFile() 75 | 76 | function! ZeusRSpecCurrent() 77 | execute("!clear ; zeus test " . expand("%p") . ":" . line(".")) 78 | endfunction 79 | map z :call ZeusRSpecCurrent() 80 | command! ZeusRSpecCurrent call ZeusRSpecCurrent() 81 | 82 | function! RSpecFile() 83 | execute("!clear ; bundle exec rspec " . expand("%p")) 84 | endfunction 85 | map T :call RSpecFile() 86 | command! RSpecFile call RSpecFile() 87 | 88 | function! RSpecCurrent() 89 | execute("!clear ; bundle exec rspec " . expand("%p") . ":" . line(".")) 90 | endfunction 91 | map t :call RSpecCurrent() 92 | command! RSpecCurrent call RSpecCurrent() 93 | 94 | 95 | 96 | "" PLUGIN SETTINGS 97 | runtime macros/matchit.vim 98 | let g:ctrlp_working_path_mode = 0 99 | noremap :call smooth_scroll#up(20, 25, 1)20j 100 | noremap :call smooth_scroll#down(20, 25, 1)20k 101 | noremap :call smooth_scroll#up(40, 25, 1) 102 | noremap :call smooth_scroll#down(40, 25, 1) 103 | 104 | "" DISPLAY SETTINGS 105 | highlight default link EndOfLineSpace ErrorMsg 106 | match EndOfLineSpace / \+$/ 107 | autocmd InsertEnter * hi link EndOfLineSpace Normal 108 | autocmd InsertLeave * hi link EndOfLineSpace ErrorMsg 109 | 110 | "" COLOR SCHEME 111 | if &t_Co >= 256 || has("gui_running") 112 | colorscheme mustang 113 | endif 114 | if &t_Co > 2 || has("gui_running") 115 | syntax on 116 | endif 117 | 118 | "" PLUG-IN INSTALLATIONS 119 | " cd ~/.vim/bundle && git clone git://github.com/tpope/vim-bundler.git 120 | " cd ~/.vim/bundle && git clone git://github.com/kien/ctrlp.vim.git 121 | " cd ~/.vim/bundle && git clone git://github.com/tpope/vim-commentary.git 122 | " cd ~/.vim/bundle && git clone git://github.com/mileszs/ack.vim.git 123 | " cd ~/.vim/bundle && git clone git://github.com/kchmck/vim-coffee-script.git 124 | " cd ~/.vim/bundle && git clone git://github.com/tpope/vim-surround.git 125 | " cd ~/.vim/bundle && git clone git://github.com/terryma/vim-smooth-scroll.git 126 | " cd ~/.vim/bundle && git clone git://github.com/kchmck/vim-coffee-script.git 127 | " cd ~/.vim/bundle && git clone git://github.com/tpope/vim-rails.git 128 | " cd ~/.vim/bundle && git clone git://github.com/bling/vim-bufferline 129 | " cd ~/.vim/bundle && git clone git://github.com/tpope/vim-unimpaired.git 130 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | latest version of my personal.vimrc and .bash_profile. 2 | --------------------------------------------------------------------------------