diff --git a/.vimrc b/.vimrc index d6bc739..a0204a6 100644 --- a/.vimrc +++ b/.vimrc @@ -6,18 +6,20 @@ call pathogen#helptags() " ctrlp.vim Config set runtimepath^=~/.vim/bundle/ctrlp.vim -map gR :call ShowRoutes() -map gv :CtrlP app/views -map gc :CtrlP app/controllers -map gm :CtrlP app/models -map gh :CtrlP app/helpers -map gl :CtrlP lib -map gp :CtrlP public -map gs :CtrlP public/stylesheets/sass -map gf :CtrlP features +let g:ctrlp_map = 'ff' +let g:ctrlp_cmd = 'CtrlP' + +map fR :call ShowRoutes() +nmap fv :CtrlP app/views +nmap fc :CtrlP app/controllers +nmap fm :CtrlP app/models +map fh :CtrlP app/helpers +map fl :CtrlP lib +map fp :CtrlP public +map fs :CtrlP app/views/stylesheets map gg :topleft 100 :split Gemfile -map f :CtrlP -map F :CtrlP %% + +let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " BASIC EDITING CONFIGURATION @@ -68,9 +70,8 @@ syntax on filetype plugin indent on " use emacs-style tab completion when selecting files, etc set wildmode=longest,list -" make tab completion for files/buffers act like bash -set wildmenu colorscheme Monokai +set wildignore+=*/tmp/*,*/log/*,*.so,*.swp,*.zip """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " CUSTOM AUTOCMDS @@ -108,6 +109,23 @@ imap => " set esc to imap +" remap semicovlon +nmap . : + +" Quickly edit/reload the vimrc file +nmap ev :e $MYVIMRC +nmap rv :so $MYVIMRC + +" remap saving and quiting :P +nmap w :w +nmap q :q +nmap Q :q! +nmap x :x +:ca WQ wq +:ca Wq wq +:ca W w +:ca Q q + " Clear the search buffer (highlighting) when hitting return function! MapCR() nnoremap :nohlsearch @@ -233,7 +251,7 @@ function! AlternateForCurrentFile() endif return new_file endfunction -nnoremap . :call OpenTestAlternate() +nnoremap o :call OpenTestAlternate() """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " RUNNING TESTS @@ -242,7 +260,6 @@ map t :call RunTestFile() map T :call RunNearestTest() map a :call RunTests('') map c :w\|:!script/features -map w :w\|:!script/features --profile wip function! RunTestFile(...) if a:0 diff --git a/.zshrc b/.zshrc index 101c2f4..4b3ee46 100644 --- a/.zshrc +++ b/.zshrc @@ -54,8 +54,8 @@ alias gdc='git diff --cached' alias gam='git commit --amend' alias gre='git remote' alias cls=clear -alias sl=ls # often screw this up alias history='fc -l 1' +alias cd-='cd -' alias ..='cd ../' alias ...='cd ../..' alias cd..='cd ..' @@ -63,7 +63,8 @@ alias cd...='cd ../..' alias cd....='cd ../../..' alias cd.....='cd ../../../..' alias cd/='cd /' - +# easier reload +alias reload='source ~/.zshrc' # Misc activate_virtualenv() { @@ -75,3 +76,6 @@ activate_virtualenv() { } PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting + +### Added by the Heroku Toolbelt +export PATH="/usr/local/heroku/bin:$PATH" diff --git a/setup_notes.txt b/setup_notes.txt index 2788942..e6c3c5d 100644 --- a/setup_notes.txt +++ b/setup_notes.txt @@ -8,3 +8,7 @@ Setting up Ruby rdoc-data --install # to regenerate all gem docs gem rdoc --all --overwrite + +Setup Vim +--------- +Map to in System Preferences -> Keyboard -> Modifier Keys. Now can leave insert mode.