Skip to content

Commit

Permalink
multi-file search
Browse files Browse the repository at this point in the history
  • Loading branch information
shantamg committed May 24, 2012
1 parent 02124ac commit e3f6dd5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .netrwhist
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =2
let g:netrw_dirhist_cnt =8
let g:netrw_dirhist_1='/Users/jason/.vim'
let g:netrw_dirhist_2='/Users/jason/.vim/plugin'
let g:netrw_dirhist_2='/Users/jason/.vim/.git'
let g:netrw_dirhist_3='/Users/jason/.vim'
let g:netrw_dirhist_4='/Users/jason/Sites/rails/sample_app'
let g:netrw_dirhist_5='/Users/jason/Sites/rails/sample_app/spec'
let g:netrw_dirhist_6='/Users/jason/Sites/rails/sample_app/spec/models'
let g:netrw_dirhist_7='/Users/jason/Sites/rails/sample_app/app/models'
let g:netrw_dirhist_8='/Users/jason/Sites/rails/sample_app/app'
24 changes: 24 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,27 @@ autocmd WinLeave * setlocal nocursorline
"make tabs and trailing spaces visible when requested:
set listchars=tab:>-,trail:·,eol:$
nmap <silent> <leader>s :set nolist!<CR>
" delete all contents and save (for log files)
map <leader>cl ggVGd:w<CR>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" jump to next occurence of word under cursor in all files
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

" this one is cleaner
" (because it doesn't flash the terminal
" and when you do fn and fp it goes to the word and not
" just the begining of the line)
" but it's way slower
map ff :vimgrep <cword> **/*<CR>
" this one is fast
"map ff :grep -r '\b<cword>\b' *<CR><CR>

" find next
map fn :cnf<CR>
" find previous
map fp :cpf<CR>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

0 comments on commit e3f6dd5

Please sign in to comment.