Skip to content

Commit

Permalink
<leader>g to find with ag for current word
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelock committed Apr 28, 2015
1 parent a5b3c8f commit 18cf75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrc.bundles
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Bundle 'rking/ag.vim'
vnoremap <silent> gv :call VisualSelection('gv', '')<CR>

" Open Ack and put the cursor in the right position
map <leader>g :Ag
map <leader>g :Ag "<cword>"<cr>

" When you press <leader>r you can search and replace the selected text
vnoremap <silent> <leader>r :call VisualSelection('replace', '')<CR>
Expand Down

0 comments on commit 18cf75c

Please sign in to comment.