Skip to content

Commit

Permalink
recursive search with string and extension with ,gr and ,gw word unde…
Browse files Browse the repository at this point in the history
…r cursor
  • Loading branch information
durdn committed Feb 28, 2011
1 parent d97c3b0 commit 165b6e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ if has('unix')
"write a read only file that needs sudo first
cmap w!! w !sudo tee % >/dev/null
"greps entire word under cursor and you can go through the matches with "ctrl-n,p
map <silent> <leader>g "yyiw:grep -r <C-R>y *<CR>
map <silent> <leader>gw "yyiw:grep -r <C-R>y *<CR>
" grep shortcut to search recursively an extension
map <leader>gr :grep -r **/*.jsp<left><left><left><left><left><left><left><left><left>
"c-n/p goes to the next prev match and list entries again
map <C-n> :cn<CR>:cl<CR>
map <C-p> :cp<CR>:cl<CR>
Expand Down

0 comments on commit 165b6e7

Please sign in to comment.