Skip to content

Commit

Permalink
switch from Command-T to fuzzyfinder
Browse files Browse the repository at this point in the history
  • Loading branch information
garybernhardt committed May 25, 2011
1 parent 4e63e28 commit d4c21c1
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
/.tox
/.vim-tmp
/.vim/.netrwhist
/.vim-fuf-data
/.vimfuzzyfinder
/.viminfo
/.vimprojects
Expand Down
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@
[submodule ".vim/bundle/vim-rails"]
path = .vim/bundle/vim-rails
url = https://github.com/tpope/vim-rails.git
[submodule ".vim/bundle/L9"]
path = .vim/bundle/L9
url = https://github.com/vim-scripts/L9
[submodule ".vim/bundle/vim-fuzzyfinder"]
path = .vim/bundle/vim-fuzzyfinder
url = https://github.com/clones/vim-fuzzyfinder
1 change: 0 additions & 1 deletion .vim/bundle/Command-T
Submodule Command-T deleted from cee619
1 change: 1 addition & 0 deletions .vim/bundle/L9
Submodule L9 added at c822b0
1 change: 1 addition & 0 deletions .vim/bundle/vim-fuzzyfinder
Submodule vim-fuzzyfinder added at 1fa510
27 changes: 15 additions & 12 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -463,25 +463,28 @@ function! ShowRoutes()
" Delete empty trailing line
:normal dd
endfunction
function! FindFile(prefix)
if a:prefix
:call fuf#setOneTimeVariables(['g:fuf_coveragefile_globPatterns', [a:prefix.'/**']])
endif
:FufCoverageFile
endfunction
map <leader>gR :call ShowRoutes()<cr>
map <leader>gv :CommandTFlush<cr>\|:CommandT app/views<cr>
map <leader>gc :CommandTFlush<cr>\|:CommandT app/controllers<cr>
map <leader>gm :CommandTFlush<cr>\|:CommandT app/models<cr>
map <leader>gh :CommandTFlush<cr>\|:CommandT app/helpers<cr>
map <leader>gl :CommandTFlush<cr>\|:CommandT lib<cr>
map <leader>gp :CommandTFlush<cr>\|:CommandT public<cr>
map <leader>gs :CommandTFlush<cr>\|:CommandT public/stylesheets<cr>
map <leader>gv :call FindFile('app/views')<cr>
map <leader>gc :call FindFile('app/controllers')<cr>
map <leader>gm :call FindFile('app/models')<cr>
map <leader>gh :call FindFile('app/helpers')<cr>
map <leader>gl :call FindFile('lib')<cr>
map <leader>gp :call FindFile('public')<cr>
map <leader>gs :call FindFile('public/stylesheets')<cr>
map <leader>gg :topleft 100 :split Gemfile<cr>
map <leader>gi :CommandTFlush<cr>\|:CommandT integration_spec<cr>
map <leader>f :call FindFile('')<cr>
map <leader>gf :call FindFile('%%')<cr>
nnoremap <leader><leader> <c-^>
call pathogen#runtime_append_all_bundles()

let g:CommandTCursorStartMap='<leader>f'
map <leader>f :CommandTFlush<cr>\|:CommandT<cr>
map <leader>gf :CommandTFlush<cr>\|:CommandT %%<cr>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Running tests
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Expand Down

0 comments on commit d4c21c1

Please sign in to comment.