Closed regedarek closed 12 years ago
You can do this with this mapping:
noremap <Leader>a :Ack <cword><cr>
it works for me just by marking word under cursor with *
and hitting :Ack<CR>
Looks to me like you can just hit :Ack<CR>
and it will search for the word under the cursor, no *
needed.
None of these suggestions seem to be working for me. Can anyone else verify they are still able to do this?
Yup, works
Yea, works for me too. I think I was trying to use it incorrectly previously. Additionally I found that you can do :Ack then ctrl-rw and it'll populate the word under the cursor into the command. This works generically too, regardless of what you're doing in command mode.
Thanks for @lukaszkorecki It works! and so useful!
Yep, it works for me too. @lukaszkorecki very useful shortcut ;)
@lukaszkorecki great tip, thank you very much!
Is posible to search words by Ack like this?
Ad.with_*some_scope(:params[:scope])
and press something like<leader>vv
to search:Ack with_some_scope